This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Run PHPUnit in CI #39
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: Continuous integration | |
on: | |
pull_request: | |
push: | |
jobs: | |
check: | |
name: PHP ${{ matrix.php-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php-version: '5.6' | |
- php-version: '7.0' | |
- php-version: '7.1' | |
- php-version: '7.2' | |
- php-version: '7.3' | |
- php-version: '7.4' | |
- php-version: '8.0' | |
- php-version: '8.1' | |
- php-version: '8.2' | |
- php-version: '8.3' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: none, curl, dom, json, mbstring, simplexml, tokenizer, xml, xmlwriter | |
coverage: none | |
- id: composer-cache | |
shell: bash | |
run: echo "dir=$(composer config cache-dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
- run: composer update --no-progress --classmap-authoritative | |
- run: ./vendor/bin/parallel-lint . --exclude vendor | |
- if: ${{ matrix.php-version >= 7.4 }} | |
run: | | |
composer require --dev php-cs-fixer/shim | |
./.dev-tools/vendor/bin/php-cs-fixer fix -vvv --allow-risky=yes --rules=void_return ./tests | |
- run: ./vendor/bin/phpunit |