-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
63 lines (50 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: docs
docs:
@./scripts/docs.sh
.PHONY: generate
generate:
@./scripts/generate
.PHONY: test
test:
@go test ./...
.PHONY: test-race
test-race:
@go test -race ./...
.PHONY: test-actions
test-actions:
docker build .docker -f .docker/act.Dockerfile -t ghcr.io/catthehacker/ubuntu:full-20.04
@./scripts/test-actions || true
.PHONY: nats-test
nats-test:
docker compose -f .docker/nats-test.yml up --build --abort-on-container-exit --remove-orphans; \
docker compose -f .docker/nats-test.yml down --remove-orphans
.PHONY: nats-bench
nats-bench:
docker compose -f .docker/nats-bench.yml up --build --abort-on-container-exit --remove-orphans; \
docker compose -f .docker/nats-bench.yml down --remove-orphans
.PHONY: mongo-test
mongo-test:
docker compose -f .docker/mongo-test.yml up --build --abort-on-container-exit --remove-orphans; \
docker compose -f .docker/mongo-test.yml down --remove-orphans
.PHONY: postgres-test
postgres-test:
docker compose -f .docker/postgres-test.yml up --build --abort-on-container-exit --remove-orphans; \
docker compose -f .docker/postgres-test.yml down --remove-orphans
.PHONY: coverage
coverage:
docker compose -f .docker/coverage.yml up --build --abort-on-container-exit --remove-orphans; \
docker compose -f .docker/coverage.yml down --remove-orphans; \
go tool cover -html=out/coverage.out
.PHONY: github-test
github-test:
docker compose -f .docker/github.yml up --build --abort-on-container-exit --remove-orphans && \
docker compose -f .docker/github.yml down --remove-orphans; \
.PHONY: bench
bench:
@go test -bench=${bench} -run=${run} -count=${count} ./...
.PHONY: cli
cli:
@go install ./cmd/goes
.PHONY: mock-cli-connector
mock-cli-connector:
@go run ./internal/cmd/cli-connector/main.go