@@ -24,27 +24,34 @@ jobs:
24
24
runs-on : ubuntu-latest
25
25
timeout-minutes : 5
26
26
steps :
27
- - uses : actions/checkout@v4
28
- - uses : actions/setup-go@v5
27
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
+
29
+ - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
29
30
with :
30
31
go-version-file : " go.mod"
31
32
cache : true
33
+
32
34
- run : go mod download
35
+
33
36
- run : go build -v .
37
+
34
38
- name : Run linters
35
- uses : golangci/golangci-lint-action@v6
39
+ uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
36
40
with :
37
41
version : latest
38
42
39
43
generate :
40
44
runs-on : ubuntu-latest
41
45
steps :
42
- - uses : actions/checkout@v4
43
- - uses : actions/setup-go@v5
46
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
+
48
+ - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
44
49
with :
45
50
go-version-file : " go.mod"
46
51
cache : true
52
+
47
53
- run : go generate ./...
54
+
48
55
- name : git diff
49
56
run : |
50
57
git diff --compact-summary --exit-code || \
@@ -72,41 +79,43 @@ jobs:
72
79
- " 1.8.*"
73
80
- " 1.9.*"
74
81
steps :
75
- - uses : actions/checkout@v4
76
- - uses : actions/setup-go@v5
82
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83
+
84
+ - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
77
85
with :
78
86
go-version-file : " go.mod"
79
87
cache : true
80
- - uses : hashicorp/setup-terraform@v3
88
+
89
+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
81
90
with :
82
91
terraform_version : ${{ matrix.terraform }}
83
92
terraform_wrapper : false
93
+
84
94
- run : go mod download
85
- - env :
95
+
96
+ - run : go test -v -cover ./internal/provider/
97
+ env :
86
98
TF_ACC : " 1"
87
99
CODER_ENTERPRISE_LICENSE : ${{ secrets.CODER_ENTERPRISE_LICENSE }}
88
- run : go test -v -cover ./internal/provider/
89
100
timeout-minutes : 10
90
101
91
102
lint :
92
103
name : Lint
93
104
runs-on : ubuntu-latest
94
105
timeout-minutes : 5
95
106
steps :
96
- - name : Set up Go
97
- uses : actions/setup-go@v5
107
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
108
+
109
+ - uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
98
110
with :
99
111
go-version : " 1.22"
100
112
id : go
101
113
102
- - uses : hashicorp/setup-terraform@v3
114
+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
103
115
with :
104
116
terraform_version : " 1.9.*"
105
117
terraform_wrapper : false
106
118
107
- - name : Check out code into the Go module directory
108
- uses : actions/checkout@v4
109
-
110
119
- name : Get dependencies
111
120
run : |
112
121
go mod download
0 commit comments