File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ name: Tests
6
6
on :
7
7
pull_request :
8
8
paths-ignore :
9
- - ' README.md'
9
+ - " README.md"
10
10
push :
11
+ branches :
12
+ - main
11
13
paths-ignore :
12
- - ' README.md'
14
+ - " README.md"
13
15
14
16
# Testing only needs permissions to read the repository contents.
15
17
permissions :
25
27
- uses : actions/checkout@v4
26
28
- uses : actions/setup-go@v5
27
29
with :
28
- go-version-file : ' go.mod'
30
+ go-version-file : " go.mod"
29
31
cache : true
30
32
- run : go mod download
31
33
- run : go build -v .
40
42
- uses : actions/checkout@v4
41
43
- uses : actions/setup-go@v5
42
44
with :
43
- go-version-file : ' go.mod'
45
+ go-version-file : " go.mod"
44
46
cache : true
45
47
- run : go generate ./...
46
48
- name : git diff
@@ -59,20 +61,21 @@ jobs:
59
61
matrix :
60
62
# list whatever Terraform versions here you would like to support
61
63
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.*"
67
69
- " 1.5.*"
68
70
- " 1.6.*"
69
71
- " 1.7.*"
70
72
- " 1.8.*"
73
+ - " 1.9.*"
71
74
steps :
72
75
- uses : actions/checkout@v4
73
76
- uses : actions/setup-go@v5
74
77
with :
75
- go-version-file : ' go.mod'
78
+ go-version-file : " go.mod"
76
79
cache : true
77
80
- uses : hashicorp/setup-terraform@v3
78
81
with :
84
87
run : go test -v -cover ./internal/provider/
85
88
timeout-minutes : 10
86
89
87
-
88
90
lint :
89
91
name : Lint
90
92
runs-on : ubuntu-latest
98
100
99
101
- uses : hashicorp/setup-terraform@v3
100
102
with :
101
- terraform_version : " 1.8 .*"
103
+ terraform_version : " 1.9 .*"
102
104
terraform_wrapper : false
103
105
104
106
- name : Check out code into the Go module directory
You can’t perform that action at this time.
0 commit comments