Skip to content

Commit 137c37b

Browse files
committed
👍 Testing env
1 parent 881ed46 commit 137c37b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/create-project.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
image: mysql:${{ matrix.mysql }}
2323
env:
2424
MYSQL_ALLOW_EMPTY_PASSWORD: yes
25-
MYSQL_DATABASE: cms_test
25+
MYSQL_DATABASE: laravel
26+
MYSQL_USER: laravel
27+
MYSQL_PASSWORD: laravel
2628
ports:
2729
- 3306:3306
2830
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -38,9 +40,6 @@ jobs:
3840
- uses: actions/checkout@v2
3941
- name: Install Dependencies
4042
run: composer create-project --prefer-dist juzaweb/cms blog ${{ matrix.version }}
41-
- name: Copy .env
42-
working-directory: blog
43-
run: rm .env && cp .env.testing.example .env
4443
- name: Generate key
4544
working-directory: blog
4645
run: php artisan key:generate

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
image: mysql:8.0.21
1111
env:
1212
MYSQL_ALLOW_EMPTY_PASSWORD: yes
13-
MYSQL_DATABASE: cms_test
13+
MYSQL_DATABASE: laravel
14+
MYSQL_USER: laravel
15+
MYSQL_PASSWORD: laravel
1416
ports:
1517
- 3306:3306
1618
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -29,8 +31,6 @@ jobs:
2931
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
3032
coverage: none
3133
- uses: actions/checkout@v2
32-
- name: Copy .env
33-
run: php -r "file_exists('.env') || copy('.env.testing.example', '.env');"
3434
- name: Install Dependencies
3535
run: composer install
3636
- name: Generate key

0 commit comments

Comments
 (0)