-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (45 loc) · 1.02 KB
/
linters.yaml
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: Go linters
on:
push:
branches:
- main
pull_request:
jobs:
golint:
runs-on: ubuntu-20.04
strategy:
matrix:
go-version:
- "1.20"
- "1.21"
name: Linters for Go ${{ matrix.go-version}}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build project
run: go build
- name: GO formatting
run: make fmt
- name: GO lint
run: make lint
- name: GO vet
run: make vet
- name: gocyclo
run: make cyclo
- name: shellcheck
run: make shellcheck
- name: errcheck
run: make errcheck
- name: goconst checker
run: make goconst
- name: gosec checker
run: make gosec
- name: ineffassign checker
run: make ineffassign
- name: ABC metrics checker
run: make abcgo
- name: Check configuration
run: make check-config