Allow Symfony 7 #49
Workflow file for this run
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: Quality and Assurance | |
on: | |
push: | |
pull_request: | |
jobs: | |
qa: | |
name: Quality | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: | |
- 8.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, extensions and composer with shivammathur/setup-php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, xml, ctype, intl, dom, filter | |
env: | |
update: true | |
- name: Install Composer dependencies | |
run: composer install --no-progress --prefer-dist --optimize-autoloader | |
- name: PHP-CS-Fixer | |
run: ./vendor/bin/php-cs-fixer fix --dry-run --using-cache=no --verbose --diff | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php-versions: | |
- 8.1 | |
- 8.2 | |
- 8.3 | |
symfony-versions: | |
- 5.4.* | |
- 6.3.* | |
- 6.4.* | |
- 7.0.* | |
dependencies: | |
- '' | |
include: | |
- php-versions: '8.1' | |
symfony-versions: '5.4.*' | |
dependencies: 'lowest' | |
exclude: | |
- php-versions: '8.1' | |
symfony-versions: '7.0.*' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, extensions and composer with shivammathur/setup-php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, filter, gd, json | |
tools: flex | |
env: | |
update: true | |
- name: Install Composer | |
if: "matrix.dependencies == ''" | |
run: composer update --no-progress --ansi --prefer-stable | |
env: | |
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }} | |
- name: Install Lowest Composer dependencies | |
if: "matrix.dependencies == 'lowest'" | |
run: composer update --no-progress --ansi --prefer-stable --prefer-lowest | |
env: | |
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }} | |
- name: Validate composer | |
run: composer validate --strict --no-check-lock | |
- name: Execute unit tests | |
run: symfony php ./vendor/bin/simple-phpunit |