@@ -5,10 +5,10 @@ name: Tests
55on :
66 pull_request :
77 paths-ignore :
8- - ' README.md'
8+ - " README.md"
99 push :
1010 paths-ignore :
11- - ' README.md'
11+ - " README.md"
1212 # For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
1313 # we recommend testing at a regular interval not necessarily tied to code changes. This will
1414 # ensure you are alerted to something breaking due to an API change, even if the code did not
@@ -22,32 +22,31 @@ jobs:
2222 runs-on : ubuntu-latest
2323 timeout-minutes : 5
2424 steps :
25+ - name : Check out code into the Go module directory
26+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
2527
26- - name : Check out code into the Go module directory
27- uses : actions/checkout@v3
28-
29- - name : Set up Go
30- uses : actions/setup-go@v3
31- with :
32- go-version-file : ' go.mod'
33- cache : true
34- id : go
28+ - name : Set up Go
29+ uses : actions/setup-go@v5
30+ with :
31+ go-version-file : " go.mod"
32+ cache : true
33+ id : go
3534
36- - name : Get dependencies
37- run : |
38- go mod download
35+ - name : Get dependencies
36+ run : |
37+ go mod download
3938
40- - name : Build
41- run : |
42- make build
39+ - name : Build
40+ run : |
41+ make build
4342
4443 generate :
4544 runs-on : ubuntu-latest
4645 steps :
4746 - uses : actions/checkout@v3
48- - uses : actions/setup-go@v3
47+ - uses : actions/setup-go@v5
4948 with :
50- go-version-file : ' go.mod'
49+ go-version-file : " go.mod"
5150 cache : true
5251 - run : go generate ./...
5352 - name : git diff
@@ -66,30 +65,29 @@ jobs:
6665 matrix :
6766 # list whatever Terraform versions here you would like to support
6867 terraform :
69- - ' 1.6.*'
70- - ' 1.7.*'
71- - ' 1.8.*'
68+ - " 1.6.*"
69+ - " 1.7.*"
70+ - " 1.8.*"
7271 steps :
72+ - name : Check out code into the Go module directory
73+ uses : actions/checkout@v3
7374
74- - name : Check out code into the Go module directory
75- uses : actions/checkout@v3
76-
77- - name : Set up Go
78- uses : actions/setup-go@v3
79- with :
80- go-version-file : ' go.mod'
81- cache : true
82- id : go
75+ - name : Set up Go
76+ uses : actions/setup-go@v5
77+ with :
78+ go-version-file : " go.mod"
79+ cache : true
80+ id : go
8381
84- - uses : hashicorp/setup-terraform@v2
85- with :
86- terraform_version : ${{ matrix.terraform }}
87- terraform_wrapper : false
82+ - uses : hashicorp/setup-terraform@v3
83+ with :
84+ terraform_version : ${{ matrix.terraform }}
85+ terraform_wrapper : false
8886
89- - name : Get dependencies
90- run : |
91- go mod download
87+ - name : Get dependencies
88+ run : |
89+ go mod download
9290
93- - name : TF acceptance tests
94- timeout-minutes : 10
95- run : make testacc
91+ - name : TF acceptance tests
92+ timeout-minutes : 10
93+ run : make testacc
0 commit comments