-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 1.19 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: piacante
slsa-verde:
go build -o bin/slsa-verde cmd/slsa-verde/*.go
orphan:
go build -o bin/orphan cmd/orphan/*.go
test: fmt vet
go test ./... -coverprofile cover.out -short
fmt:
go run mvdan.cc/gofumpt -w ./
vet:
go vet ./...
coverage.out:
go test -race -v -count=1 -covermode=atomic -coverprofile=coverage.out ./... || true
cover-html: coverage.out
go tool cover -html=$<
dtrack-up:
docker compose -f hack/docker-compse-dtrack.yaml up
dtrack-down:
docker compose -f hack/docker-compse-dtrack.yaml down
local:
export KUBECONFIG="${HOME}/.kube/config" && go build -o bin/slsa-verde cmd/slsa-verde/*.go && go run cmd/slsa-verde/main.go
generate-mocks:
go run github.com/vektra/mockery/v2 --keeptree --case snake --srcpkg ./internal/monitor --name Client
go run github.com/vektra/mockery/v2 --keeptree --case snake --srcpkg ./internal/attestation --name Verifier
vuln:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
static:
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
deadcode:
go run golang.org/x/tools/cmd/deadcode@latest -filter "internal/test/client.go" -filter "internal/test/test.go" -test ./...
check: static deadcode vuln
helm-lint:
helm lint --strict ./charts