Skip to content

Commit

Permalink
Change Default DB
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesChou committed Aug 4, 2023
1 parent 33d8ade commit 5c070db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
#DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=pass

Expand Down
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 5c070db

Please sign in to comment.