forked from RedHatInsights/quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 880 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
35
36
37
help:
@echo "Availabe commands:"
@echo "------------------"
@echo "test - run tests"
@echo "coverage - open browser with detailed test coverage report"
@echo "migrate - run database migration"
@echo "generate-spec - run openAPI3 generator"
@echo "validate-topics - run help topics validator"
@echo "infra - start required infrastructure"
@echo "stop-infra - stop required infrastructure"
@echo "audit - run grype audit on the docker image"
test:
go test ./... -coverprofile=c.out
coverage:
go tool cover -html=c.out
migrate:
go run cmd/migrate/migrate.go
generate-spec:
go run cmd/spec/main.go
validate:
go run cmd/validate/*
infra:
docker compose -f local/db-compose.yaml up
stop-infra:
docker compose -f local/db-compose.yaml down
audit:
docker build . -t quickstarts:audit
grype quickstarts:audit --fail-on medium --only-fixed