Bump due to Twig security issue #149
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.1', '8.2'] | |
symfony: ['4.4.*', '5.4.*', '6.1.*', '6.2.*'] | |
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'] | |
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 |