@@ -24,27 +24,34 @@ jobs:
2424 runs-on : ubuntu-latest
2525 timeout-minutes : 5
2626 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
2930 with :
3031 go-version-file : " go.mod"
3132 cache : true
33+
3234 - run : go mod download
35+
3336 - run : go build -v .
37+
3438 - name : Run linters
35- uses : golangci/golangci-lint-action@v6
39+ uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
3640 with :
3741 version : latest
3842
3943 generate :
4044 runs-on : ubuntu-latest
4145 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
4449 with :
4550 go-version-file : " go.mod"
4651 cache : true
52+
4753 - run : go generate ./...
54+
4855 - name : git diff
4956 run : |
5057 git diff --compact-summary --exit-code || \
@@ -72,41 +79,43 @@ jobs:
7279 - " 1.8.*"
7380 - " 1.9.*"
7481 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
7785 with :
7886 go-version-file : " go.mod"
7987 cache : true
80- - uses : hashicorp/setup-terraform@v3
88+
89+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
8190 with :
8291 terraform_version : ${{ matrix.terraform }}
8392 terraform_wrapper : false
93+
8494 - run : go mod download
85- - env :
95+
96+ - run : go test -v -cover ./internal/provider/
97+ env :
8698 TF_ACC : " 1"
8799 CODER_ENTERPRISE_LICENSE : ${{ secrets.CODER_ENTERPRISE_LICENSE }}
88- run : go test -v -cover ./internal/provider/
89100 timeout-minutes : 10
90101
91102 lint :
92103 name : Lint
93104 runs-on : ubuntu-latest
94105 timeout-minutes : 5
95106 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
98110 with :
99111 go-version : " 1.22"
100112 id : go
101113
102- - uses : hashicorp/setup-terraform@v3
114+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
103115 with :
104116 terraform_version : " 1.9.*"
105117 terraform_wrapper : false
106118
107- - name : Check out code into the Go module directory
108- uses : actions/checkout@v4
109-
110119 - name : Get dependencies
111120 run : |
112121 go mod download
0 commit comments