Skip to content

Commit

Permalink
feature pipeline: adicionando .env.testing padrão e debug laravel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonSouzaDev authored Nov 16, 2023
1 parent 1ab5a17 commit edf0d0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
with:
php-version: '8.1'

- name: Copy .env
run: php -r "file_exists('backend-api/.env') || copy('backend-api/.env.example', 'backend-api/.env');"
- name: Copy .env.testing
run: php -r "file_exists('backend-api/.env') || copy('backend-api/.env.testing', 'backend-api/.env');"

- name: Install Composer Dependencies
run: |
Expand Down Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Debug .env.testing in Testing
run: cat backend-api/.env.testing

- name: Debug Laravel Configuration
run: php backend-api/artisan config:dump

- name: Run Migrations
run: php backend-api/artisan migrate --env=testing

Expand Down

0 comments on commit edf0d0f

Please sign in to comment.