...
1name: CI
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9jobs:
10 build:
11 name: Build
12 runs-on: ubuntu-latest
13 strategy:
14 matrix:
15 go: ['1.11', '1.12', '1.13']
16 env:
17 VERBOSE: 1
18 GOFLAGS: -mod=readonly
19 GOPROXY: https://proxy.golang.org
20
21 steps:
22 - name: Set up Go
23 uses: actions/setup-go@v1
24 with:
25 go-version: ${{ matrix.go }}
26
27 - name: Checkout code
28 uses: actions/checkout@v2
29
30 - name: Run tests
31 run: make test
32
33 - name: Run linter
34 run: make lint
View as plain text