File tree Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Expand file tree Collapse file tree 3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
run :
10
10
runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ go : [1.19.x, 1.20.x]
15
+
11
16
steps :
12
17
- name : checkout source code
13
- uses : actions/checkout@master
18
+ uses : actions/checkout@v3
14
19
15
20
- name : setup go environment
16
- uses : actions/setup-go@v1
21
+ uses : actions/setup-go@v4
17
22
with :
18
- go-version : ' 1.17.2 '
23
+ go-version : ${{ matrix.go }}
19
24
20
25
- name : run golangci-lint
21
26
uses : golangci/golangci-lint-action@v3
25
30
26
31
- name : run tests
27
32
run : |
28
- export PATH="$(go env GOPATH)/bin:${PATH}"
29
33
set -x
30
34
make install.tools
31
35
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
run :
10
10
runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ go : [1.19.x, 1.20.x]
15
+
11
16
steps :
12
17
- name : checkout source code
13
- uses : actions/checkout@master
18
+ uses : actions/checkout@v3
14
19
15
20
- name : setup go environment
16
- uses : actions/setup-go@v1
21
+ uses : actions/setup-go@v4
17
22
with :
18
- go-version : ' 1.17.2 '
23
+ go-version : ${{ matrix.go }}
19
24
20
25
- name : run golangci-lint
21
26
uses : golangci/golangci-lint-action@v3
25
30
26
31
- name : run tests
27
32
run : |
28
- export PATH="$(go env GOPATH)/bin:${PATH}"
29
33
set -x
30
34
make install.tools
31
35
Original file line number Diff line number Diff line change 73
73
install.tools : .install.gitvalidation
74
74
75
75
.install.gitvalidation :
76
- go get -u github.com/vbatts/git-validation
76
+ go install github.com/vbatts/git-validation@v1.2.0
77
77
78
78
clean :
79
79
rm -rf $(OUTPUT_DIRNAME ) * ~
You can’t perform that action at this time.
0 commit comments