Merge pull request #747 from giggsey/upstream-9.0.27 #846
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: "Tests" | |
| on: | |
| push: | |
| paths-ignore: | |
| - 'docs/**' | |
| pull_request: | |
| paths-ignore: | |
| - 'docs/**' | |
| jobs: | |
| tests: | |
| name: PHP ${{ matrix.php-version }} (${{ matrix.arch }}) - ${{ matrix.composer }} | |
| runs-on: ubuntu-latest | |
| container: shivammathur/node:latest-${{ matrix.arch }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| arch: [ "amd64", "i386" ] | |
| php-version: [8.1, 8.2, 8.3, 8.4, 8.5] | |
| composer: [highest, lowest] | |
| exclude: | |
| # PHP 8.5 doesn't work with lowest due to our deps loading nikic/php-parser@5.3 | |
| - composer: lowest | |
| php-version: 8.5 | |
| # PHP 8.5 and i386 seems to timeout due to libxml2 issues | |
| - php-version: 8.5 | |
| arch: i386 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP, with composer and extensions | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: dom | |
| coverage: xdebug | |
| tools: composer:v2 | |
| - uses: "ramsey/composer-install@v3" | |
| with: | |
| dependency-versions: "${{ matrix.composer }}" | |
| - name: composer validate | |
| run: composer validate --strict | |
| - name: Run unit tests | |
| run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text" | |
| - name: Publish coverage report to Codecov | |
| uses: "codecov/codecov-action@v5" |