Merge pull request #29 from RamyHakam/28-unable-to-use-dql-string_fun… #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: action_status | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master","dev"] | |
permissions: | |
contents: read | |
jobs: | |
symfony-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28 | |
with: | |
php-version: '8.1' | |
- uses: actions/checkout@v3 | |
- name: Copy .env.test.local | |
run: php -r "file_exists('.env.test.local') || copy('.env.test', '.env.test.local');" | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Create Database | |
run: | | |
mkdir -p data | |
touch data/database.sqlite | |
- name: Execute tests (Unit and Feature tests) via PHPUnit | |
env: | |
DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite | |
run: vendor/bin/phpunit |