v3.0 php8.* #36
Workflow file for this run
This file contains hidden or 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: [pull_request] | |
| jobs: | |
| tests: | |
| name: NodalFlow (PHP ${{ matrix.php-versions }} / dispatcher ${{ matrix.dispatcher-versions }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ] | |
| dispatcher-versions: ['5.4.*', '6.0.*', '6.1.*', '6.2.*', '6.3.*', '6.4.*', '7.0.*', '7.1.*', '7.2.*'] | |
| exclude: | |
| # PHP 8.0 doesn't support Symfony 6.1+ | |
| - php-versions: 8.0 | |
| dispatcher-versions: 6.1.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 6.2.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 6.3.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 6.4.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 7.0.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 7.1.* | |
| - php-versions: 8.0 | |
| dispatcher-versions: 7.2.* | |
| # PHP 8.1 doesn't support Symfony 7.x | |
| - php-versions: 8.1 | |
| dispatcher-versions: 7.0.* | |
| - php-versions: 8.1 | |
| dispatcher-versions: 7.1.* | |
| - php-versions: 8.1 | |
| dispatcher-versions: 7.2.* | |
| # Symfony 7.x requires PHP 8.2+ | |
| - php-versions: 8.2 | |
| dispatcher-versions: 7.2.* | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: mbstring, dom, fileinfo, gmp, bcmath | |
| - 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@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Remove php-cs-fixer dependency | |
| run: composer remove "friendsofphp/php-cs-fixer" --dev --no-update | |
| - name: Remove composer.lock | |
| run: rm -f composer.lock | |
| - name: Install Symfony dispatcher ${{ matrix.dispatcher-versions }} | |
| run: composer require "symfony/event-dispatcher:${{ matrix.dispatcher-versions }}" --dev --no-update | |
| - name: Install Composer dependencies | |
| run: composer install --no-progress --prefer-dist --optimize-autoloader | |
| - name: Test with phpunit | |
| run: vendor/bin/phpunit |