Add github actions workflow
Mark Sagi-Kazar authored 4 years ago
Márk Sági-Kazár committed 4 years ago
0 | name: CI | |
1 | ||
2 | on: | |
3 | push: | |
4 | branches: | |
5 | - master | |
6 | pull_request: | |
7 | ||
8 | jobs: | |
9 | build: | |
10 | name: Build | |
11 | runs-on: ubuntu-latest | |
12 | strategy: | |
13 | max-parallel: 10 | |
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@v1 | |
29 | ||
30 | - name: Run tests | |
31 | run: make test | |
32 | ||
33 | - name: Run linter | |
34 | run: make lint |