-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 780 Bytes
/
Makefile
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
csi-driver:
go build ./cmd/csi-driver
test: hack
hack/ginkgo run -p \
-timeout 0 \
-race \
-coverpkg ./... \
-coverprofile coverage.out \
--keep-going \
./pkg/...
go tool cover -html=coverage.out -o coverage.html
test-sanity: csi-driver
tests/sanity/run.sh
hack:
cd hack && go build -o . github.com/golangci/golangci-lint/cmd/golangci-lint
cd hack && go build -o . github.com/onsi/ginkgo/v2/ginkgo
depscheck:
@hack/godepscheck.sh
fmt:
gofmt -s -w .
fmtcheck:
@hack/gofmtcheck.sh
go-lint: hack
@echo "==> Checking source code against linters..."
@hack/golangci-lint run --timeout 5m ./...
.PHONY: csi-driver test test-sanity hack go-lint depscheck fmt