8000 Update laravel.yml · Rihanrh/laravel-10-crud-cicd@ae780fc · GitHub
Skip to content

Commit ae780fc

Browse files
committed
Update laravel.yml
1 parent 49da5a8 commit ae780fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/laravel.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
mysql:
1616
image: mysql:5.7
1717
env:
18-
MYSQL_ROOT_PASSWORD: ${{ secrets.DB_PASSWORD }}
18+
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
1919
ports:
2020
- 3306
2121

@@ -39,9 +39,9 @@ jobs:
3939
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
4040
env:
4141
DB_CONNECTION: mysql
42-
DB_HOST: ${{ secrets.DB_HOST }}
43-
DB_PORT: ${{ secrets.DB_PORT }}
42+
DB_HOST: 127.0.0.1
43+
DB_PORT: ${{ job.services.mysql.ports[3306] }}
4444
DB_DATABASE: ${{ secrets.DB_DATABASE }}
45-
DB_USERNAME: ${{ secrets.DB_USERNAME }}
46-
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
45+
DB_USERNAME: root
46+
DB_PASSWORD: ""
4747
run: php artisan test

0 commit comments

Comments
 (0)
0