File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments