Skip to content

Commit c064e59

Browse files
committed
add steps to copy .env and create database in CI workflow
1 parent d31b531 commit c064e59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
npm install
5555
npm run build
5656
57+
- name: Copy .env
58+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
59+
60+
- name: Creating Database
61+
run: php -r "file_exists('database/database.sqlite') || touch('database/database.sqlite');"
62+
5763
- name: Preparing Laravel
5864
run: php artisan key:generate --force && php artisan optimize:clear
5965

0 commit comments

Comments
 (0)