-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·47 lines (37 loc) · 971 Bytes
/
test.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
41
42
43
44
45
46
47
name: Test/Lint/Fmt/Vet
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container: golang:1
env:
GOFLAGS: "-buildvcs=false"
steps:
- uses: actions/checkout@v4
- name: Build
run: go build ./...
- name: Test
run: go test ./...
- name: Vet
run: go vet ./...
- name: Mod download
run: go mod download
- name: Mod verify
run: go mod verify
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck -test ./...
- name: Run errcheck
run: |
go install github.com/kisielk/errcheck@latest
errcheck ./...
- name: Run staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck
staticcheck ./...
- name: Run golint
run: |
go install golang.org/x/lint/golint
golint -set_exit_status ./...