-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 924 Bytes
/
lint-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Lint and Test
on:
push:
branches:
- "master"
- "feature/*"
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
stable: true
- name: test
run: go test -json ./... > test.json
- name: annotate tests
if: always()
uses: guyarb/[email protected]
with:
test-results: test.json
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v2
with:
stable: true
- uses: golangci/[email protected]
with:
version: v1.31
# TODOs should be warned locally, but not on here
args: "--exclude 'LINE CONTAINS TODO/BUG/FIXME: '"
only-new-issues: true