File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 branches :
99 - ' main'
1010jobs :
11- run-copywrite :
12- timeout-minutes : 5
13- runs-on : ubuntu-24.04
14- steps :
15- - uses : actions/checkout@v6
16- - uses : hashicorp/setup-copywrite@v1.1.3
17- - name : verify copyright
18- run : |
19- copywrite --config .github/workflows/scripts/copywrite.hcl \
20- headers --spdx "BSD-3-Clause" --plan
2111 run-tests :
2212 timeout-minutes : 5
2313 runs-on : ubuntu-24.04
3424 just sysinfo
3525 - name : Run Go Test
3626 run : |
37- just init tidy lint test
27+ just init tidy lint tests
Original file line number Diff line number Diff line change 1- run :
2- timeout : 5m
1+ version : " 2"
32linters :
43 enable :
5- - asasalint
6- - asciicheck
7- - bidichk
8- - bodyclose
9- - copyloopvar
10- - dogsled
11- - dupword
12- - durationcheck
13- - errcheck
14- - errname
15- - errorlint
16- - exhaustive
17- - gochecknoinits
18- - gocritic
19- - gofmt
20- - gosimple
21- - govet
22- - ineffassign
23- - makezero
24- - misspell
25- - musttag
26- - nilnil
27- - noctx
28- - paralleltest
29- - perfsprint
30- - prealloc
31- - predeclared
32- - reassign
33- - revive
34- - rowserrcheck
35- - staticcheck
36- - sqlclosecheck
37- - tagalign
38- - tenv
39- - unused
40- - whitespace
4+ - asasalint
5+ - asciicheck
6+ - bidichk
7+ - bodyclose
8+ - copyloopvar
9+ - dogsled
10+ - dupword
11+ - durationcheck
12+ - errname
13+ - errorlint
14+ - exhaustive
15+ - gochecknoinits
16+ - gocritic
17+ - makezero
18+ - misspell
19+ - musttag
20+ - nilnil
21+ - noctx
22+ - perfsprint
23+ - prealloc
24+ - predeclared
25+ - reassign
26+ - revive
27+ - rowserrcheck
28+ - sqlclosecheck
29+ - tagalign
30+ - usetesting
31+ - whitespace
32+ settings :
33+ exhaustive :
34+ default-signifies-exhaustive : true
35+ exclusions :
36+ generated : lax
37+ presets :
38+ - comments
39+ formatters :
40+ enable :
41+ - gofmt
42+ exclusions :
43+ generated : lax
4144
42- linters-settings :
43- paralleltest :
44- ignore-missing-subtests : true
45- exhaustive :
46- default-signifies-exhaustive : true
Original file line number Diff line number Diff line change 1515
1616# run tests across source tree
1717[group (' build' )]
18- test :
18+ tests :
1919 go test -v -race -count=1 ./ ...
2020
21- # ensure copywrite headers present on source files
22- [group (' lint' )]
23- copywrite :
24- copywrite \
25- - -config {{ scripts}} / copywrite.hcl headers \
26- - -spdx " BSD-3-Clause"
27-
2821# apply go vet command on source tree
2922[group (' lint' )]
3023vet :
@@ -38,7 +31,7 @@ lint: vet
3831# locally install build dependencies
3932[group (' build' )]
4033init :
41- go install github.com/ golangci/ golangci-lint/ cmd/ golangci-lint@v1 .62.2
34+ go install github.com/ golangci/ golangci-lint/ v2 / cmd/ golangci-lint@v2 .11.4
4235
4336# show host system information
4437[group (' build' )]
Original file line number Diff line number Diff line change 11module cattlecloud.net/go/stacks
22
3- go 1.23
3+ go 1.26
44
55require github.com/shoenig/test v1.12.2
66
You can’t perform that action at this time.
0 commit comments