Skip to content

Commit

Permalink
Add automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zera1ul committed Sep 15, 2024
1 parent a2e5722 commit fc40c0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
npm run build
- name: Start environment
run: |
docker compose up -d
docker compose -f compose.test.yml up -d
- name: Run test
run: |
npm run test
4 changes: 4 additions & 0 deletions compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ services:
- 5432:5432
volumes:
- ./mockup-data.sql:/docker-entrypoint-initdb.d/data.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
retries: 30

0 comments on commit fc40c0b

Please sign in to comment.