Skip to content

Merge pull request #33 from bnf/php84-cautious #81

Merge pull request #33 from bnf/php84-cautious

Merge pull request #33 from bnf/php84-cautious #81

Workflow file for this run

name: Tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Validate composer.json
run: composer validate
- name: Lint PHP
run: |
find src/ tests/ -name '*.php' -print0 | xargs -0 -n1 -P4 php -dxdebug.mode=off -l >/dev/null
- name: Install dependencies
run: composer update
- name: Run test suite
run: vendor/bin/phpunit