Add StrictComparisonOperatorRule #1366
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: ${{ matrix.name || format('PHP {0} - {1}', matrix.php-version, matrix.dependencies) }} | |
| runs-on: ubuntu-latest | |
| env: | |
| SYMFONY_REQUIRE: ${{matrix.symfony-require}} | |
| strategy: | |
| matrix: | |
| php-version: | |
| - 8.1 | |
| - 8.2 | |
| - 8.3 | |
| - 8.4 | |
| - 8.5 | |
| dependencies: [highest] | |
| runner: [ubuntu-latest] | |
| symfony-require: [''] | |
| include: | |
| - php-version: 8.1 | |
| dependencies: lowest | |
| name: PHP 8.1 - lowest | |
| - php-version: 8.5 | |
| dependencies: highest | |
| symfony-require: 7.4.* | |
| name: PHP 8.5 - highest - Symfony 7.4 | |
| - php-version: 8.5 | |
| dependencies: highest | |
| symfony-require: 8.0.* | |
| name: PHP 8.5 - highest - Symfony 8.0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install PHP with extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| coverage: pcov | |
| tools: composer:v2 | |
| ini-file: development | |
| - name: Globally install symfony/flex | |
| if: matrix.symfony-require != '' | |
| run: | | |
| composer config minimum-stability dev | |
| composer global config --no-plugins allow-plugins.symfony/flex true | |
| composer global require --no-progress --no-scripts --no-plugins symfony/flex | |
| - name: Add matrix to composer.json for cache key | |
| if: matrix.symfony-require != '' | |
| run: composer config extra.symfony-require-for-cache "${{ matrix.symfony-require }}" | |
| - name: Install Composer dependencies ${{ matrix.dependencies }} | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| dependency-versions: ${{ matrix.dependencies }} | |
| composer-options: --prefer-dist --prefer-stable | |
| - name: Validate lowest dependencies | |
| run: vendor/bin/validate-prefer-lowest | |
| if: ${{ matrix.dependencies == 'lowest' }} | |
| - name: Run tests with PHPUnit | |
| run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml | |
| - name: Send coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| file: build/logs/clover.xml |