...
1---
2name: vet
3on:
4 pull_request:
5 push:
6 branches:
7 - main
8
9permissions:
10 contents: read # to fetch code (actions/checkout)
11
12jobs:
13 vet:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v4
17 - uses: actions/setup-go@v5
18 with:
19 go-version: '1.20.x'
20 - name: Install tools
21 run: |
22 go install golang.org/x/lint/golint@latest && \
23 go install golang.org/x/tools/cmd/goimports@latest && \
24 go install honnef.co/go/tools/cmd/staticcheck@latest
25 - name: Execute vet.sh
26 run: ./.github/workflows/vet.sh
View as plain text