Skip to content

Commit

Permalink
Test go-test-action
Browse files Browse the repository at this point in the history
  • Loading branch information
vipinvkmenon committed Apr 24, 2024
1 parent 659277f commit 366a598
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 366a598

Please sign in to comment.