Skip to content

Update PHP and Symfony versions in ci.yml #146

Update PHP and Symfony versions in ci.yml

Update PHP and Symfony versions in ci.yml #146

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3']
symfony: ['4.4.*', '5.4.*', '6.4.*', '7.0.*', '7.1.*']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, intl
tools: composer:v2, flex
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Checkout code
uses: actions/checkout@v2
- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v1
- name: Run tests
run: composer run test
test-lowest:
name: Test Lowest
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: mbstring, intl
tools: composer:v2, flex
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: make test-lowest
codestyle:
name: Code style
runs-on: ubuntu-latest
container: jakzal/phpqa:php8.1
steps:
- uses: actions/checkout@v2
- name: PHP CS Fixer (via jakzal/phpqa)
run: php-cs-fixer fix -vv --dry-run
static:
name: Static code analysis
runs-on: ubuntu-latest
container: jakzal/phpqa
steps:
- uses: actions/checkout@v2
- run: composer install
- name: PHPStan (via jakzal/phpqa)
run: phpstan analyze -c .phpstan.neon