File tree Expand file tree Collapse file tree 2 files changed +44
-19
lines changed
Expand file tree Collapse file tree 2 files changed +44
-19
lines changed Original file line number Diff line number Diff line change 11name : test
2- on : [push, pull_request]
32
43permissions :
54 contents : read
65
6+ concurrency :
7+ group : ${{ github.workflow }}-${{ github.ref }}
8+ cancel-in-progress : true
9+
10+ on : [push, pull_request]
11+
712jobs :
813 test :
14+ name : ${{ matrix.platform }} (${{ matrix.go-version || 'oldest' }})
15+ timeout-minutes : 10
916 strategy :
17+ fail-fast : false
1018 matrix :
11- go-version : [1.18.x, 1.20.x]
12- os : [ubuntu-latest, windows-latest, macos-latest]
13- runs-on : ${{ matrix.os }}
14- timeout-minutes : 10
19+ go-version :
20+ - " " # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
21+ - " oldstable"
22+ - " stable"
23+ platform : [ubuntu-latest,windows-latest, macos-latest]
24+ runs-on : ${{ matrix.platform }}
1525 steps :
16- - uses : actions/setup-go@v4
26+ - name : Checkout code
27+ uses : actions/checkout@v6
28+ - name : Install Go ${{ matrix.go-version }}
29+ uses : actions/setup-go@v6
1730 with :
1831 go-version : ${{ matrix.go-version }}
19- - uses : actions/checkout@v3
32+ go-version-file : " go.mod " # used when go-version is not specified.
2033 - name : Test
2134 run : go test -v ./...
Original file line number Diff line number Diff line change 11name : validate
2- on : [push, pull_request]
32
43permissions :
54 contents : read
65
6+ concurrency :
7+ group : ${{ github.workflow }}-${{ github.ref }}
8+ cancel-in-progress : true
9+
10+ on : [push, pull_request]
11+
712jobs :
8- linters :
13+ lint :
14+ name : ${{ matrix.platform }} (${{ matrix.go-version || 'oldest' }})
15+ timeout-minutes : 10
916 strategy :
17+ fail-fast : false
1018 matrix :
11- go-version : [1.20.x]
12- os : [ubuntu-latest]
13- runs-on : ${{ matrix.os }}
14- timeout-minutes : 10
19+ go-version :
20+ - " " # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
21+ - " oldstable"
22+ - " stable"
23+ platform : [ubuntu-latest,windows-latest, macos-latest]
24+ runs-on : ${{ matrix.platform }}
1525 steps :
16- - uses : actions/setup-go@v4
26+ - name : Checkout code
27+ uses : actions/checkout@v6
28+ - name : Install Go ${{ matrix.go-version }}
29+ uses : actions/setup-go@v6
1730 with :
1831 go-version : ${{ matrix.go-version }}
19- - uses : actions/checkout@v3
20- - name : lint
21- uses : golangci/golangci-lint-action@v3
32+ go-version-file : " go.mod " # used when go-version is not specified.
33+ - name : Lint
34+ uses : golangci/golangci-lint-action@v9
2235 with :
23- version : v1.53
24- args : --print-resources-usage --timeout=10m --verbose
36+ args : --timeout=5m --verbose
You can’t perform that action at this time.
0 commit comments