forked from davidrjenni/A
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 917 Bytes
/
ci.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
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
name: CI
jobs:
test:
name: Lint and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.13.x, 1.14.x, 1.15.x]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
- name: golint
run: |
go get golang.org/x/lint/golint
golint -set_exit_status ./...
- name: unconvert
run: |
go get github.com/mdempsky/unconvert
unconvert -v ./...
- name: maligned
run: |
go get github.com/mdempsky/maligned
maligned ./...
- name: staticcheck
run: |
go get honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
- name: Test
run: go test -race ./...