...
1name: Test
2
3on:
4 push:
5 branches:
6 - main
7 tags:
8 - '*'
9 pull_request:
10 branches:
11 - main
12
13jobs:
14 test:
15 runs-on: ubuntu-latest
16
17 steps:
18 - uses: actions/checkout@v2
19
20 - uses: actions/setup-go@v2
21 with:
22 go-version: '1.14'
23
24 - uses: actions/cache@v2
25 with:
26 path: ~/go/pkg/mod
27 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28 restore-keys: |
29 ${{ runner.os }}-go-
30
31 - name: Lint
32 run: make fmtcheck staticcheck spellcheck
33
34 - name: Test
35 run: make test-acc
View as plain text