build(deps-dev): update phpunit/phpunit requirement from ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 to ^11.5.1 #145
Workflow file for this run
This file contains 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: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
test: | |
name: PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
if: "! contains(toJSON(github.event.head_commit.message), 'skip ci')" | |
strategy: | |
matrix: | |
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] | |
include: | |
- php: 5.6 | |
phpunit: 5 | |
- php: 7.0 | |
phpunit: 6 | |
- php: 7.1 | |
phpunit: 6 | |
- php: 7.2 | |
phpunit: 7 | |
- php: 7.3 | |
phpunit: 7 | |
- php: 7.4 | |
phpunit: 7 | |
- php: 8.0 | |
phpunit: 8 | |
- php: 8.1 | |
phpunit: 9 | |
- php: 8.2 | |
phpunit: 9 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache/files | |
key: php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: php-${{ matrix.php }}-composer- | |
- name: Install dependencies | |
run: composer install --prefer-source | |
- name: Run tests | |
run: | | |
cd tests | |
../vendor/bin/phpunit --coverage-text . | |
- name: Check code style | |
run: vendor/bin/phpcs --standard=PEAR src/ |