Commit 80a8712 1 parent dc553db commit 80a8712 Copy full SHA for 80a8712
File tree 6 files changed +19
-13
lines changed
6 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 43
43
- name : Checkout repository
44
44
uses : actions/checkout@v4
45
45
46
+ - name : Set up Go
47
+ uses : actions/setup-go@v5
48
+ with :
49
+ go-version-file : go.mod
50
+
46
51
# Initializes the CodeQL tools for scanning.
47
52
- name : Initialize CodeQL
48
53
uses : github/codeql-action/init@v3
Original file line number Diff line number Diff line change 25
25
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26
26
restore-keys : |
27
27
${{ runner.os }}-go-
28
- - uses : actions/setup-go@v5
28
+ - name : Set up Go
29
+ uses : actions/setup-go@v5
29
30
with :
30
- go-version : ${{ matrix.go }}
31
+ go-version-file : go.mod
31
32
- run : mkdir -p ~/.config/equinix
32
33
- run : touch ~/.config/equinix/metal.yaml
33
34
- name : Build docs
Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ jobs:
37
37
runs-on : ubuntu-latest
38
38
concurrency : ' e2e-test'
39
39
steps :
40
- - name : Set up Go
41
- uses : actions/setup-go@v5
42
- with :
43
- go-version : ' 1.19'
44
40
- name : Check out code into the Go module directory
45
41
uses : actions/checkout@v4
46
42
with :
47
43
ref : ${{ github.event.pull_request.head.sha || github.ref }}
44
+ - name : Set up Go
45
+ uses : actions/setup-go@v5
46
+ with :
47
+ go-version-file : go.mod
48
48
- name : Get dependencies
49
49
run : go mod download
50
50
- name : Run end-to-end tests
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ jobs:
16
16
name : lint
17
17
runs-on : ubuntu-latest
18
18
steps :
19
+ - uses : actions/checkout@v4
19
20
- uses : actions/setup-go@v5
20
21
with :
21
- go-version : 1.19
22
- - uses : actions/checkout@v4
22
+ go-version-file : go.mod
23
23
- name : golangci-lint
24
24
uses : golangci/golangci-lint-action@v3
25
25
with :
43
43
# skip-pkg-cache: true
44
44
45
45
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
46
- # skip-build-cache: true
46
+ # skip-build-cache: true
Original file line number Diff line number Diff line change 18
18
name : Set up Go
19
19
uses : actions/setup-go@v5
20
20
with :
21
- go-version : 1.19
21
+ go-version-file : go.mod
22
22
-
23
23
name : Run GoReleaser
24
24
uses : goreleaser/goreleaser-action@v5
Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
timeout-minutes : 10
8
8
steps :
9
+ - name : Check out code into the Go module directory
10
+ uses : actions/checkout@v4
9
11
- name : Set up Go
10
12
uses : actions/setup-go@v5
11
13
with :
12
- go-version : ' 1.19'
13
- - name : Check out code into the Go module directory
14
- uses : actions/checkout@v4
14
+ go-version-file : go.mod
15
15
- name : Get dependencies
16
16
run : go mod download
17
17
- name : Build
You can’t perform that action at this time.
0 commit comments