Skip to content

Commit b23d61c

Browse files
committed
build:fixed migration error
1 parent 7756a4e commit b23d61c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
image: mysql:8.0
2424
env:
2525
MYSQL_ROOT_PASSWORD: password
26-
MYSQL_DATABASE: laravel_test
26+
MYSQL_DATABASE: laravel
2727
options: >-
2828
--health-cmd="mysqladmin ping"
2929
--health-interval=10s
@@ -65,18 +65,19 @@ jobs:
6565
php artisan config:cache
6666
6767
- name: Run tests
68+
run: |
69+
php artisan migrate --force
70+
php artisan test
6871
env:
6972
DB_CONNECTION: mysql
7073
DB_HOST: 127.0.0.1
7174
DB_PORT: 3306
72-
DB_DATABASE: laravel_test
75+
DB_DATABASE: laravel
7376
DB_USERNAME: root
7477
DB_PASSWORD: password
7578
REDIS_HOST: 127.0.0.1
7679
REDIS_PORT: 6379
77-
run: |
78-
php artisan migrate --force
79-
php artisan test
80+
8081

8182
deploy:
8283
name: Deploy to ECS

0 commit comments

Comments
 (0)