Skip to content

Merge pull request #44 from peteradeojo/fix/declaration-compatibility #31

Merge pull request #44 from peteradeojo/fix/declaration-compatibility

Merge pull request #44 from peteradeojo/fix/declaration-compatibility #31

Workflow file for this run

name: Tests
on:
push: ~
pull_request: ~
jobs:
unit_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 8.1
posix:
- true
- false
name: "${{ format('Tests on PHP {0} {1}', matrix.php, matrix.posix && 'with posix' || 'without posix') }}"
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov
extensions: "${{ matrix.posix && 'none, posix' || 'none' }}, pcntl, tokenizer, fileinfo, dom, xml, xmlwriter, mbstring, curl, json"
- uses: "ramsey/composer-install@v2"
- run: make tests
- uses: codecov/codecov-action@v2
with:
name: "phpunit-php${{ matrix.php }}"
flags: phpunit
fail_ci_if_error: true
continue-on-error: true