Skip to content

Deprecate Types enum and introduce NodeType enum for consistency with MarkType #65

Deprecate Types enum and introduce NodeType enum for consistency with MarkType

Deprecate Types enum and introduce NodeType enum for consistency with MarkType #65

Workflow file for this run

name: PHPUnit Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
tools: composer
coverage: xdebug
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: composer clearcache && composer install --prefer-dist
- name: Run tests
run: ./vendor/bin/phpunit --coverage-clover=clover.xml --configuration actions.phpunit.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./clover.xml
flags: php-${{ matrix.php }}
fail_ci_if_error: false
verbose: true
if: matrix.php == '8.1'