Skip to content

Commit

Permalink
Add unit and integration test into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MatRouillard committed Mar 13, 2024
1 parent b0a36e4 commit 978bad3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ jobs:
- name: Build application
run: make all
- name: List dist output
run: ls dist/
run: ls dist/
- name: Unit test
run: make unit_test
- name: Integration test
run: make integration_test
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ build:
dist:
mkdir dist

.PHONY: unit_test
unit_test:
go test -v -cover ./...

.PHONY: integration_test
integration_test:
go test -v -count=1 --tags=integration ./app

.PHONY: stop_dev_db
stop_dev_db:
docker container stop $(DB_CONTAINER_NAME)

0 comments on commit 978bad3

Please sign in to comment.