From 678643f3b8653964b08b6ee331aa58abbd4b9c2d Mon Sep 17 00:00:00 2001 From: MilesChou Date: Sat, 5 Aug 2023 01:54:17 +0800 Subject: [PATCH] Fix db error --- .github/workflows/tests.yml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f99e7221..aabc7af4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: @@ -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