Skip to content

Sync with latest Symfony version #204

Sync with latest Symfony version

Sync with latest Symfony version #204

Workflow file for this run

name: CI
on:
push:
branches:
- '6.4'
pull_request:
branches:
- '6.4'
env:
APP_ENV: test
jobs:
symfony:
name: Symfony 6.4 (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP with extensions and Composer v2
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
extensions: ctype, iconv, intl, json, mbstring, pdo, pdo_sqlite
env:
update: true
- name: Validate composer.json
run: composer validate
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-
- name: Install Composer dependencies
run: composer install --no-progress
- name: Update database schema
run: php bin/console doctrine:schema:update --force
- name: Load Doctrine fixtures
run: php bin/console doctrine:fixtures:load --quiet
- name: Run functional tests
run: vendor/bin/codecept run Functional