Skip to content

Commit

Permalink
👍 Testing env
Browse files Browse the repository at this point in the history
  • Loading branch information
juzaweb committed Apr 13, 2024
1 parent 881ed46 commit 137c37b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/create-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
image: mysql:${{ matrix.mysql }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: cms_test
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -38,9 +40,6 @@ jobs:
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer create-project --prefer-dist juzaweb/cms blog ${{ matrix.version }}
- name: Copy .env
working-directory: blog
run: rm .env && cp .env.testing.example .env
- name: Generate key
working-directory: blog
run: php artisan key:generate
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
image: mysql:8.0.21
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: cms_test
MYSQL_DATABASE: laravel
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -29,8 +31,6 @@ jobs:
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.testing.example', '.env');"
- name: Install Dependencies
run: composer install
- name: Generate key
Expand Down

0 comments on commit 137c37b

Please sign in to comment.