Fix PHP 5.6 libxml flags #24
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: | |
| push: | |
| branches: [ php5.6 ] | |
| pull_request: | |
| branches: [ php5.6 ] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP 5.6 with Xdebug | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '5.6' | |
| tools: composer:v2.2 | |
| coverage: xdebug | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-interaction --no-progress | |
| - name: Run tests | |
| run: composer test | |
| - name: Run tests with coverage | |
| run: composer test-coverage | |
| - name: Build Clover coverage report | |
| run: >- | |
| php ./vendor/phpunit/phpunit/phpunit | |
| --configuration ./continuous-integration/phpunit/phpunit.xml | |
| --colors=always | |
| --coverage-clover coverage.xml | |
| --whitelist ./src | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| flags: php5.6 | |
| name: php5.6 | |
| fail_ci_if_error: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |