Skip to content

Commit 5fa98ff

Browse files
committed
BZR-69 add depends-on option
1 parent c5fc38d commit 5fa98ff

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/codecov.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
MYSQL_ROOT_PASSWORD: secret
2222
MYSQL_DATABASE: buzzer
2323
ports:
24-
- 33065:3306
25-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
24+
- 3306
25+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
2626
steps:
2727
- uses: actions/checkout@v3
2828
- name: Init application
@@ -31,9 +31,12 @@ jobs:
3131
docker compose -f docker-compose.dev.yml up --build -d
3232
docker exec -i -u root buzzer_app composer install
3333
docker exec -i -u root buzzer_app php artisan key:generate
34+
- name: Init database
35+
run: |
3436
docker exec -i -u root buzzer_app php artisan migrate
3537
env:
3638
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
39+
options: --depends-on=mysql
3740
- name: Run tests and generate xml report
3841
run: docker exec -i -u root buzzer_app vendor/bin/phpunit --coverage-clover=coverage.xml
3942
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)