Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59ec6b0

Browse files
committed
fix test workflow
1 parent c59c745 commit 59ec6b0

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ name: Tests
66
on:
77
pull_request:
88
paths-ignore:
9-
- 'README.md'
9+
- "README.md"
1010
push:
11+
branches:
12+
- main
1113
paths-ignore:
12-
- 'README.md'
14+
- "README.md"
1315

1416
# Testing only needs permissions to read the repository contents.
1517
permissions:
@@ -25,7 +27,7 @@ jobs:
2527
- uses: actions/checkout@v4
2628
- uses: actions/setup-go@v5
2729
with:
28-
go-version-file: 'go.mod'
30+
go-version-file: "go.mod"
2931
cache: true
3032
- run: go mod download
3133
- run: go build -v .
@@ -40,7 +42,7 @@ jobs:
4042
- uses: actions/checkout@v4
4143
- uses: actions/setup-go@v5
4244
with:
43-
go-version-file: 'go.mod'
45+
go-version-file: "go.mod"
4446
cache: true
4547
- run: go generate ./...
4648
- name: git diff
@@ -59,20 +61,21 @@ jobs:
5961
matrix:
6062
# list whatever Terraform versions here you would like to support
6163
terraform:
62-
- '1.0.*'
63-
- '1.1.*'
64-
- '1.2.*'
65-
- '1.3.*'
66-
- '1.4.*'
64+
- "1.0.*"
65+
- "1.1.*"
66+
- "1.2.*"
67+
- "1.3.*"
68+
- "1.4.*"
6769
- "1.5.*"
6870
- "1.6.*"
6971
- "1.7.*"
7072
- "1.8.*"
73+
- "1.9.*"
7174
steps:
7275
- uses: actions/checkout@v4
7376
- uses: actions/setup-go@v5
7477
with:
75-
go-version-file: 'go.mod'
78+
go-version-file: "go.mod"
7679
cache: true
7780
- uses: hashicorp/setup-terraform@v3
7881
with:
@@ -84,7 +87,6 @@ jobs:
8487
run: go test -v -cover ./internal/provider/
8588
timeout-minutes: 10
8689

87-
8890
lint:
8991
name: Lint
9092
runs-on: ubuntu-latest
@@ -98,7 +100,7 @@ jobs:
98100

99101
- uses: hashicorp/setup-terraform@v3
100102
with:
101-
terraform_version: "1.8.*"
103+
terraform_version: "1.9.*"
102104
terraform_wrapper: false
103105

104106
- name: Check out code into the Go module directory

0 commit comments

Comments
 (0)