arbo/.github/workflows/lint.yml
.github/workflows/lint.ymlRaw
1name: Lint
2on: [ push, pull_request ]
3jobs:
4 lint:
5 runs-on: ubuntu-latest
6 steps:
7 - name: Install Go
8 uses: actions/setup-go@v1
9 with:
10 go-version: 1.14.x
11 - name: Checkout code
12 uses: actions/checkout@v2
13 - name: Lint
14 run: |
15 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
16 $(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml