diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c08f51e..78c4286 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,10 +42,6 @@ jobs: cache: true - run: go mod download - run: go build -v . - - name: Run linters - uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v3.7.1 - with: - version: latest generate: if: github.event.pull_request.draft == false @@ -90,10 +86,15 @@ jobs: terraform_version: ${{ matrix.terraform }} terraform_wrapper: false - run: go mod download - - env: + - if: ${{ matrix.terraform != env.LATEST_VERSION}} + env: TF_ACC: "1" run: go test -v -cover -coverprofile=cover.out -timeout=900s -parallel=4 ./... timeout-minutes: 20 + - if: ${{ matrix.terraform == env.LATEST_VERSION}} + uses: robherley/go-test-action@v0 + env: + TF_ACC: "1" - run: echo "CURRENT_TF_VERSION=${{ matrix.terraform }}" >> $GITHUB_ENV # Upload coverage report for latest Terraform version only to avoid nameing issues in upload (see also https://github.com/actions/upload-artifact/tree/v4/?tab=readme-ov-file#breaking-changes) - uses: actions/upload-artifact@v4