@@ -5,10 +5,10 @@ name: Tests
5
5
on :
6
6
pull_request :
7
7
paths-ignore :
8
- - ' README.md'
8
+ - " README.md"
9
9
push :
10
10
paths-ignore :
11
- - ' README.md'
11
+ - " README.md"
12
12
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
13
13
# we recommend testing at a regular interval not necessarily tied to code changes. This will
14
14
# ensure you are alerted to something breaking due to an API change, even if the code did not
@@ -22,32 +22,31 @@ jobs:
22
22
runs-on : ubuntu-latest
23
23
timeout-minutes : 5
24
24
steps :
25
+ - name : Check out code into the Go module directory
26
+ uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
25
27
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
35
34
36
- - name : Get dependencies
37
- run : |
38
- go mod download
35
+ - name : Get dependencies
36
+ run : |
37
+ go mod download
39
38
40
- - name : Build
41
- run : |
42
- make build
39
+ - name : Build
40
+ run : |
41
+ make build
43
42
44
43
generate :
45
44
runs-on : ubuntu-latest
46
45
steps :
47
46
- uses : actions/checkout@v3
48
- - uses : actions/setup-go@v3
47
+ - uses : actions/setup-go@v5
49
48
with :
50
- go-version-file : ' go.mod'
49
+ go-version-file : " go.mod"
51
50
cache : true
52
51
- run : go generate ./...
53
52
- name : git diff
@@ -66,30 +65,29 @@ jobs:
66
65
matrix :
67
66
# list whatever Terraform versions here you would like to support
68
67
terraform :
69
- - ' 1.6.*'
70
- - ' 1.7.*'
71
- - ' 1.8.*'
68
+ - " 1.6.*"
69
+ - " 1.7.*"
70
+ - " 1.8.*"
72
71
steps :
72
+ - name : Check out code into the Go module directory
73
+ uses : actions/checkout@v3
73
74
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
83
81
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
88
86
89
- - name : Get dependencies
90
- run : |
91
- go mod download
87
+ - name : Get dependencies
88
+ run : |
89
+ go mod download
92
90
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