Skip to content

Commit

Permalink
Tests - Wait for services to be ready in detached mode (#293)
Browse files Browse the repository at this point in the history
```
--wait     Wait for services to be running|healthy. Implies detached mode.
```

Should fix the rare issue where tests fail due to DB container taking
too long to start up.
  • Loading branch information
veteran29 authored Aug 29, 2023
2 parents 96043b6 + d0b7254 commit afbdb14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
- name: Start stack
run: |
docker-compose -f docker-compose.test.yml up -d
docker-compose exec -T php composer install
docker compose -f docker-compose.test.yml up --wait
docker compose exec -T php composer install
- name: Setup database
run: |
make db env=test
- name: Run lint
run: |
docker-compose exec -T php bin/console cache:warmup --env=dev
docker compose exec -T php bin/console cache:warmup --env=dev
make cs env=test ci=true
- name: Run tests
Expand Down

0 comments on commit afbdb14

Please sign in to comment.