File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Continuous Integration
1+ name : CI
22
3- on :
4- push :
5- branches :
6- - main
7- - master
8- pull_request :
3+ permissions :
4+ contents : read
5+
6+ concurrency :
7+ group : ${{ github.workflow }}-${{ github.ref }}
8+ cancel-in-progress : true
9+
10+ on : [push, pull_request]
11+
12+ env :
13+ GOTOOLCHAIN : local
914
1015jobs :
1116 test :
1217 name : Unit test
1318 timeout-minutes : 10
1419 strategy :
1520 matrix :
16- go-version : [1.13.x, 1.21.x, 1.22.x ]
21+ go-version : [1.13.x, oldstable, stable ]
1722 platform : [ubuntu-latest]
1823 runs-on : ${{ matrix.platform }}
1924 steps :
20- - name : Install Go
21- uses : actions/setup-go@v5
22- with :
23- go-version : ${{ matrix.go-version }}
24- - name : Checkout code
25- uses : actions/checkout@v4
26- - name : Validate headers
27- if : startsWith(matrix.go-version, '1.13') == false
28- run : |
29- go install github.com/containerd/ltag@latest \
30- && ./scripts/validate/fileheader
31- - name : Test
32- run : go test -v ./...
25+ - name : Install Go
26+ uses : actions/setup-go@v6
27+ with :
28+ go-version : ${{ matrix.go-version }}
29+ - name : Checkout code
30+ uses : actions/checkout@v6
31+ - name : Validate headers
32+ if : startsWith(matrix.go-version, '1.13') == false
33+ run : |
34+ go install github.com/containerd/ltag@latest \
35+ && ./scripts/validate/fileheader
36+ - name : Test
37+ run : go test -race -v ./...
You can’t perform that action at this time.
0 commit comments