Skip to content

Commit 99622e6

Browse files
author
Itamar Junior
committed
Update Laravel environment setup in GitHub Actions workflow for testing
1 parent 9a110a0 commit 99622e6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/laravel-package-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ jobs:
4141
# Step 4: Setup Laravel environment
4242
- name: Setup Laravel environment
4343
run: |
44-
cp .env.example .env
45-
php artisan key:generate
44+
echo "APP_NAME=Laravel" > .env
45+
echo "APP_ENV=testing" >> .env
46+
echo "APP_KEY=base64:$(php artisan key:generate --show)" >> .env
47+
echo "APP_DEBUG=true" >> .env
48+
echo "APP_URL=http://localhost" >> .env
49+
echo "DB_CONNECTION=sqlite" >> .env
50+
echo "DB_DATABASE=/tmp/testing.sqlite" >> .env
51+
touch /tmp/testing.sqlite
4652
php artisan config:clear
4753
php artisan migrate --force
4854

0 commit comments

Comments
 (0)