From 59ec6b013b074dad61e18e46b75811856022286e Mon Sep 17 00:00:00 2001 From: Colin Adler Date: Fri, 12 Jul 2024 18:27:34 +0000 Subject: [PATCH] fix test workflow --- .github/workflows/test.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efbf664..6ce06ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,10 +6,12 @@ name: Tests on: pull_request: paths-ignore: - - 'README.md' + - "README.md" push: + branches: + - main paths-ignore: - - 'README.md' + - "README.md" # Testing only needs permissions to read the repository contents. permissions: @@ -25,7 +27,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" cache: true - run: go mod download - run: go build -v . @@ -40,7 +42,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" cache: true - run: go generate ./... - name: git diff @@ -59,20 +61,21 @@ jobs: matrix: # list whatever Terraform versions here you would like to support terraform: - - '1.0.*' - - '1.1.*' - - '1.2.*' - - '1.3.*' - - '1.4.*' + - "1.0.*" + - "1.1.*" + - "1.2.*" + - "1.3.*" + - "1.4.*" - "1.5.*" - "1.6.*" - "1.7.*" - "1.8.*" + - "1.9.*" steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" cache: true - uses: hashicorp/setup-terraform@v3 with: @@ -84,7 +87,6 @@ jobs: run: go test -v -cover ./internal/provider/ timeout-minutes: 10 - lint: name: Lint runs-on: ubuntu-latest @@ -98,7 +100,7 @@ jobs: - uses: hashicorp/setup-terraform@v3 with: - terraform_version: "1.8.*" + terraform_version: "1.9.*" terraform_wrapper: false - name: Check out code into the Go module directory