From 03f380b67a5c2307d700ba032898684d1dcabbdc Mon Sep 17 00:00:00 2001 From: cliftonHPE Date: Wed, 4 Dec 2024 14:46:30 +0200 Subject: [PATCH] move terraform fmt to lint workflow --- .github/workflows/lint-test-code.yaml | 8 ++++++++ .github/workflows/terraform.yaml | 23 ----------------------- 2 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/terraform.yaml diff --git a/.github/workflows/lint-test-code.yaml b/.github/workflows/lint-test-code.yaml index f0c7281..ffff91d 100644 --- a/.github/workflows/lint-test-code.yaml +++ b/.github/workflows/lint-test-code.yaml @@ -71,3 +71,11 @@ jobs: files: ./pkg/config-api-client/.coverage,.coverage flage: client,provider fail_ci_if_error: true + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v1 + with: + terraform_version: 0.13.7 + + - name: Terraform Formatting Check + run: terraform fmt -recursive -check diff --git a/.github/workflows/terraform.yaml b/.github/workflows/terraform.yaml deleted file mode 100644 index 07a6912..0000000 --- a/.github/workflows/terraform.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Terraform - -on: [push] - -jobs: - terraform-fmt: - name: Check formatting - runs-on: ubuntu-latest - env: - TF_IN_AUTOMATION: "true" - - steps: - - name: Git checkout - uses: actions/checkout@v4 - - - name: Setup Terraform - uses: hashicorp/setup-terraform@v1 - with: - terraform_version: 0.13.7 - - - name: Terraform fmt - id: fmt - run: terraform fmt -recursive -check