Skip to content

Commit f701f0a

Browse files
Add delay before running unit tests
1 parent 27f4774 commit f701f0a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424
- name: Check if docker-compose is working
2525
run: docker-compose ps
2626

27+
- name: Wait for the api01 to be ready
28+
run: sleep 10 # Ajuste o tempo conforme necessário
29+
2730
- name: Run unit tests with vitest
28-
run: docker exec api01 npm test
31+
run: docker exec $(docker-compose ps -q api01) npm test
2932

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

0 commit comments

Comments
 (0)