Skip to content

Commit

Permalink
Fix db error
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou committed Aug 4, 2023
1 parent dc5a26c commit 678643f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@ jobs:
linux_tests:
runs-on: ubuntu-latest

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: laravel
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis:5.0
ports:
- 6379:6379
options: --entrypoint redis-server

strategy:
fail-fast: true
matrix:
Expand Down Expand Up @@ -58,9 +43,7 @@ jobs:
run: cp .env.example .env && php artisan key:generate

- name: Migration
run: php artisan migrate:fresh --seed
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
run: touch database/database.sqlite && php artisan migrate:fresh --seed

- name: Execute tests
run: php -d xdebug.mode=coverage vendor/bin/phpunit
Expand Down

0 comments on commit 678643f

Please sign in to comment.