...
1name: build and vet
2
3on:
4 pull_request:
5 branches_ignore: []
6
7jobs:
8 build:
9 runs-on: ubuntu-latest
10 strategy:
11 matrix:
12 go: ['1.17', '1.18', '1.19', '1.20']
13
14 name: build and vet
15 steps:
16
17 - uses: actions/checkout@v2
18 with:
19 path: go/src/github.com/vbatts/tar-split
20
21 - uses: actions/setup-go@v4
22 with:
23 go-version: ${{ matrix.go }}
24
25 - name: vet and build
26 env:
27 GOPATH: /home/runner/work/tar-split/tar-split/go
28 run: |
29 set -x
30 export PATH=$GOPATH/bin:$PATH
31 cd go/src/github.com/vbatts/tar-split
32 go run mage.go -v vet build test
View as plain text