Skip to content

Commit

Permalink
Add delay before running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorCarvalho67 committed Jan 30, 2024
1 parent 27f4774 commit f701f0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ jobs:
- name: Check if docker-compose is working
run: docker-compose ps

- name: Wait for the api01 to be ready
run: sleep 10 # Ajuste o tempo conforme necessário

- name: Run unit tests with vitest
run: docker exec api01 npm test
run: docker exec $(docker-compose ps -q api01) npm test

- name: Stop and remove docker-compose containers
run: docker-compose down

0 comments on commit f701f0a

Please sign in to comment.