Skip to content

Commit

Permalink
Fixes to db job.
Browse files Browse the repository at this point in the history
  • Loading branch information
DvDty committed Jan 28, 2024
1 parent 2200ac7 commit c80e0ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
php artisan key:generate
php artisan config:clear
- name: Run tests
- name: Run coverage
working-directory: ./application
run: php artisan test --coverage

Expand Down Expand Up @@ -182,8 +182,8 @@ jobs:
mysql-service:
image: mysql:8
env:
MYSQL_DATABASE: db
MYSQL_USER: admin
MYSQL_DATABASE: application
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: password
MYSQL_PASSWORD: password
ports:
Expand Down Expand Up @@ -220,6 +220,7 @@ jobs:
php artisan config:clear
- name: Run migrations
working-directory: ./application
run: php artisan migrate
env:
DB_PORT: ${{ job.services.mysql-service.ports[3306]}}
Expand All @@ -230,6 +231,7 @@ jobs:
run: php artisan test --testsuite=Feature

- name: Run migrations
working-directory: ./application
run: php artisan migrate:rollback
env:
DB_PORT: ${{ job.services.mysql-service.ports[3306]}}
Expand Down
2 changes: 1 addition & 1 deletion application/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=application
DB_USERNAME=root
DB_PASSWORD=
DB_PASSWORD=password

BROADCAST_DRIVER=log
CACHE_DRIVER=file
Expand Down

0 comments on commit c80e0ea

Please sign in to comment.