Support newer versions of Chrome (#749) #1020
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php }}; Symfony ${{ matrix.symfony }}; Chrome ${{ matrix.chrome }} | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| symfony: ['5', '6', '7', '8'] | |
| exclude: | |
| - php: '7.4' | |
| symfony: '6' | |
| - php: '7.4' | |
| symfony: '7' | |
| - php: '7.4' | |
| symfony: '8' | |
| - php: '8.0' | |
| symfony: '6' | |
| - php: '8.0' | |
| symfony: '7' | |
| - php: '8.0' | |
| symfony: '8' | |
| - php: '8.1' | |
| symfony: '7' | |
| - php: '8.1' | |
| symfony: '8' | |
| - php: '8.2' | |
| symfony: '8' | |
| - php: '8.3' | |
| symfony: '8' | |
| - php: '8.5' | |
| symfony: '5' | |
| include: | |
| - symfony: '5' | |
| chrome: '122' | |
| - symfony: '6' | |
| chrome: '130' | |
| - symfony: '7' | |
| chrome: '140' | |
| - symfony: '8' | |
| chrome: '150' | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v7 | |
| - name: Setup Chrome | |
| id: setup-chrome | |
| uses: browser-actions/setup-chrome@v2 | |
| with: | |
| chrome-version: ${{ matrix.chrome }} | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer:v2 | |
| coverage: none | |
| env: | |
| update: true | |
| - name: Setup Problem Matchers | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: Select Symfony 5 | |
| uses: nick-fields/retry@v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| command: composer require "symfony/filesystem:^5.4" "symfony/process:^5.4" "symfony/var-dumper:^5.4" --dev --no-update --no-interaction | |
| if: "matrix.symfony == '5'" | |
| - name: Select Symfony 6 | |
| uses: nick-fields/retry@v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| command: composer require "symfony/filesystem:^6.0" "symfony/process:^6.0" "symfony/var-dumper:^6.0" --dev --no-update --no-interaction | |
| if: "matrix.symfony == '6'" | |
| - name: Select Symfony 7 | |
| uses: nick-fields/retry@v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| command: composer require "symfony/filesystem:^7.0" "symfony/process:^7.0" "symfony/var-dumper:^7.0" --dev --no-update --no-interaction | |
| if: "matrix.symfony == '7'" | |
| - name: Select Symfony 8 | |
| uses: nick-fields/retry@v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| command: composer require "symfony/filesystem:^8.0" "symfony/process:^8.0" "symfony/var-dumper:^8.0" --dev --no-update --no-interaction | |
| if: "matrix.symfony == '8'" | |
| - name: Install Dependencies | |
| uses: nick-fields/retry@v4 | |
| with: | |
| timeout_minutes: 5 | |
| max_attempts: 5 | |
| command: composer update --no-interaction --no-progress | |
| - name: Execute PHPUnit | |
| run: vendor/bin/phpunit | |
| env: | |
| CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }} | |
| CHROME_NO_SANDBOX: true |