File tree Expand file tree Collapse file tree 2 files changed +10
-25
lines changed
Expand file tree Collapse file tree 2 files changed +10
-25
lines changed Original file line number Diff line number Diff line change 11name : Lint
22on : [push, pull_request]
3+
34permissions :
45 contents : read
6+
57jobs :
6- go-mod :
7- strategy :
8- matrix :
9- os : [ubuntu-latest]
10- go : [1.16]
11- runs-on : ${{ matrix.os }}
8+ lint :
9+ runs-on : ubuntu-latest
1210
1311 steps :
1412 - name : Set up Go
1513 uses : actions/setup-go@v3
1614 with :
17- go-version : ${{ matrix.go }}
15+ go-version : " 1.18 "
1816
1917 - name : Checkout repository
2018 uses : actions/checkout@v3
2119
22- - name : Check go mod
20+ - name : Check dependencies
2321 run : |
2422 go mod tidy
2523 git diff --exit-code go.mod
2624
27- lint :
28- strategy :
29- matrix :
30- os : [ubuntu-latest]
31- go : [1.16]
32- runs-on : ${{ matrix.os }}
33-
34- steps :
35- - name : Set up Go
36- uses : actions/setup-go@v3
37- with :
38- go-version : ${{ matrix.go }}
39-
40- - name : Checkout repository
41- uses : actions/checkout@v3
42-
4325 - name : Lint
4426 uses : golangci/golangci-lint-action@v3.1.0
4527 with :
Original file line number Diff line number Diff line change 11name : Test
22on : [push, pull_request]
3+
34permissions :
45 contents : read
6+
57jobs :
68 test :
79 strategy :
810 fail-fast : false
911 matrix :
1012 os : [ubuntu-latest, windows-latest, macos-latest]
11- go : [1.16]
13+ go : ["1.18", "1.19"]
14+
1215 runs-on : ${{ matrix.os }}
1316
1417 steps :
You can’t perform that action at this time.
0 commit comments