Skip to content

feat: Symfony 7 support #135

feat: Symfony 7 support

feat: Symfony 7 support #135

Workflow file for this run

name: Tests
on: [pull_request]
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: [ '8.1', '8.2', '8.3']
sf_version: [ '5.4.*', '6.4.*', '7.*' ]
exclude:
- php: 8.1
sf_version: '7.*'
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: none
tools: flex
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.sf_version }}
run: |
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
- name: Run tests
run: ./vendor/bin/simple-phpunit
lowest:
name: Lowest deps
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/[email protected]
with:
php-version: 8.1
coverage: none
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
run: |
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable --prefer-lowest
- name: Run tests
env:
SYMFONY_DEPRECATIONS_HELPER: "max[self]=0"
run: ./vendor/bin/simple-phpunit