forked from KKGo-Software-engineering/workshop
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 669 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 669 Bytes
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
install:
go mod tidy
dev:
go run main.go
dev-re:
re go run main.go
dev-hotreload:
nodemon --exec go run main.go --signal SIGTERM
test: test-unit test-integration test-e2e
test-unit:
go test -tags=unit -v ./...
test-coverage:
go test -cover -tags=unit ./...
test-integration:
docker-compose -f docker-compose.it-test.yaml down && \
docker-compose -f docker-compose.it-test.yaml up --build --force-recreate --abort-on-container-exit --exit-code-from it_tests
test-e2e:
docker-compose -f docker-compose.e2e-test.yaml down && \
docker-compose -f docker-compose.e2e-test.yaml up --build --force-recreate --abort-on-container-exit --exit-code-from e2e_test