Removed rector from composer.json #112
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-coverage | |
| on: [ push, pull_request ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-php: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| php-version: [ "7.4", "8.0", "8.4" ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "${{ matrix.php-version }}" | |
| extensions: curl, json | |
| coverage: xdebug | |
| tools: composer:v2 | |
| ini-values: xdebug.mode=coverage | |
| - name: Validate Composer files | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| uses: ramsey/composer-install@v3 | |
| with: | |
| composer-options: --no-interaction --prefer-dist | |
| - name: Run PHPUnit | |
| run: vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=coverage.xml --exclude-group local-only | |
| env: | |
| XDEBUG_MODE: coverage | |
| - name: Upload coverage to Codecov | |
| if: matrix.php-version == '8.4' | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| disable_search: true | |
| fail_ci_if_error: true |