Repository navigation
Fix jQuery positional pseudo-classes to index the matched set #97
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: Unit Testing | |
| on: [ pull_request ] | |
| jobs: | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ] | |
| include: | |
| - php: '8.3' | |
| report: true | |
| name: PHP ${{ matrix.php-versions }} PHPUnit Test | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| ini-values: error_reporting=E_ALL | |
| # zip is needed by the .docx and .odt examples, which ExamplesTest runs. | |
| extensions: dom, simplexml, zip | |
| - name: Install Composer Dependencies | |
| uses: ramsey/composer-install@v4 | |
| - name: Log debug information | |
| run: | | |
| php --version | |
| composer --version | |
| - name: Run PHPUnit Tests without coverage | |
| if: ${{ ! matrix.report }} | |
| run: ./vendor/bin/phpunit | |
| - name: Run PHPUnit Tests with coverage | |
| if: ${{ matrix.report }} | |
| run: ./vendor/bin/phpunit --coverage-clover=./coverage/coverage1.xml | |
| - name: Check Code Coverage | |
| if: ${{ matrix.report }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| directory: ./coverage/ | |
| token: ${{ secrets.CODECOV_TOKEN }} |