Skip to content

Commit a1535c1

Browse files
committedMar 20, 2025
upkeep: litt mer ting ved make build og make test-ci
1 parent e62fd73 commit a1535c1

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed
 

‎Makefile

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
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
22

3-
build:
3+
build: check fmt
44
go build
55

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 ./...
816

9-
fmt:
10-
go run mvdan.cc/gofumpt -w ./
1117
vet:
1218
go vet ./...
1319

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
1527
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
1628

1729
nais-cli:
1830
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 ./...

0 commit comments

Comments
 (0)
Please sign in to comment.