File tree 1 file changed +19
-11
lines changed
1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
- .PHONY : build test test-ci nais-cli check fmt vet
1
+ .PHONY : build check staticcheck vulncheck deadcode fmt test test-ci nais-cli vet
2
2
3
- build :
3
+ build : check fmt
4
4
go build
5
5
6
- test : fmt vet
7
- go run github.com/onsi/ginkgo/v2/ginkgo -r --race --randomize-all --randomize-suites --fail-on-pending --fail-on-empty
6
+ check : staticcheck vulncheck deadcode
7
+
8
+ staticcheck :
9
+ go run honnef.co/go/tools/cmd/staticcheck@latest ./...
10
+
11
+ vulncheck :
12
+ go run golang.org/x/vuln/cmd/govulncheck@latest ./...
13
+
14
+ deadcode :
15
+ go run golang.org/x/tools/cmd/deadcode@latest -test ./...
8
16
9
- fmt :
10
- go run mvdan.cc/gofumpt -w ./
11
17
vet :
12
18
go vet ./...
13
19
14
- test-ci :
20
+ fmt :
21
+ go run mvdan.cc/gofumpt@latest -w ./
22
+
23
+ test : fmt vet
24
+ go run github.com/onsi/ginkgo/v2/ginkgo -r --race --randomize-all --randomize-suites --fail-on-pending --fail-on-empty
25
+
26
+ test-ci : vet
15
27
go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --fail-on-pending --fail-on-empty --keep-going --cover --coverprofile=cover.out --race --trace --junit-report=report.xml --github-output
16
28
17
29
nais-cli :
18
30
go build -installsuffix cgo -o bin/nais main.go
19
-
20
- check :
21
- go run honnef.co/go/tools/cmd/staticcheck ./...
22
- go run golang.org/x/vuln/cmd/govulncheck ./...
You can’t perform that action at this time.
0 commit comments