-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 1 KB
/
Copy pathMakefile
File metadata and controls
49 lines (35 loc) · 1 KB
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
47
48
49
.PHONY: go/install go/tidy go/test go/testsum go/lint go/coverage go/vulncheck
.PHONY: generate/key generate/changelog
.PHONY: dev/up dev/down dev/logs
.PHONY: terraform/apply terraform/destroy
go/install:
go get -v
go/tidy:
go mod tidy --compat=1.26
go/test:
go test -v -coverprofile=.coverage.out --cover ./...
go/testsum:
gotestsum --format testname --no-color=false -- --cover ./...
go/lint:
golangci-lint run --allow-parallel-runners
go/coverage:
go tool cover -html=.coverage.out
go/vulncheck:
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
generate/key:
openssl rand -hex 32
dev/up:
docker compose -f testing/docker-compose.yml up -d
dev/down:
docker compose -f testing/docker-compose.yml down
dev/logs:
docker compose -f testing/docker-compose.yml logs --tail=50
terraform/apply:
cd testing/terraform/vault && \
terraform init && \
terraform apply -auto-approve
terraform/destroy:
cd testing/terraform/vault && \
terraform destroy -auto-approve
generate/changelog:
changie merge