Skip to content

Commit ad64a45

Browse files
committed
Add linting
1 parent 531bf4a commit ad64a45

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
checks:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Set up Go
18+
uses: actions/setup-go@v1
19+
with:
20+
go-version: 1.14
21+
- name: Run linters
22+
run: |
23+
export PATH=$PATH:$(go env GOPATH)/bin
24+
go install golang.org/x/lint/golint
25+
golint --set_exit_status $(go list ./...)
26+
go vet ./...

0 commit comments

Comments
 (0)