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@v6
9 with:
10 go-version: 1.21.x
11 cache: false
12 - name: Checkout code
13 uses: actions/checkout@v2
14 - name: Lint
15 run: |
16 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/v1.55.2/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
17 $(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml