generated from PenaSide/GolangTemplate
always run tests
This commit is contained in:
parent
15d33a6fe1
commit
6c1792f023
@ -14,7 +14,7 @@ ADD ./tools/migrate /bin/golang-migrate/
|
|||||||
# Add main files to app
|
# Add main files to app
|
||||||
ADD . .
|
ADD . .
|
||||||
# Download go depences
|
# Download go depences
|
||||||
RUN go mod download
|
# RUN go mod download
|
||||||
# Build app
|
# Build app
|
||||||
RUN GOOS=linux go build -o bin ./...
|
RUN GOOS=linux go build -o bin ./...
|
||||||
|
|
||||||
|
4
Makefile
4
Makefile
@ -36,7 +36,7 @@ test.integration.down: ## shutting down integration environment
|
|||||||
docker-compose -f deployments/test/docker-compose.yaml down --volumes --rmi local
|
docker-compose -f deployments/test/docker-compose.yaml down --volumes --rmi local
|
||||||
|
|
||||||
test.integration.start: ## run integration test
|
test.integration.start: ## run integration test
|
||||||
go test ./tests/integration/...
|
go test -count=1 ./tests/integration/...
|
||||||
|
|
||||||
test.e2e.start: ## run integration test
|
test.e2e.start: ## run integration test
|
||||||
go test ./tests/e2e/...
|
go test ./tests/e2e/...
|
||||||
@ -48,4 +48,4 @@ dev.up: ## run dev environment
|
|||||||
docker-compose -f deployments/dev/docker-compose.yaml up -d
|
docker-compose -f deployments/dev/docker-compose.yaml up -d
|
||||||
|
|
||||||
dev.down: ## shutting down dev environment
|
dev.down: ## shutting down dev environment
|
||||||
docker-compose -f deployments/dev/docker-compose.yaml down --volumes --rmi local
|
docker-compose -f deployments/dev/docker-compose.yaml down --volumes --rmi local
|
||||||
|
Loading…
Reference in New Issue
Block a user