Skip to content

Commit

Permalink
Update symfony.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Magehawks authored Apr 1, 2024
1 parent d824cd1 commit 25182e1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/symfony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
with:
php-version: '8.0'
- uses: actions/checkout@v3

- name: Copy .env.test.local
working-directory: ./app
run: php -r "file_exists('.env.test.local') || copy('.env.test', '.env.test.local');"
- name: Cache Composer packages
working-directory: ./app
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
Expand All @@ -39,15 +37,15 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Install Dependencies
working-directory: ./app
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
working-directory: ./app
- name: Create Database
run: |
mkdir -p data
touch data/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
working-directory: ./app
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite
run: vendor/bin/phpunit
working-directory: ./app

0 comments on commit 25182e1

Please sign in to comment.