chore: fix code-style #24
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: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
name: PHP ${{ matrix.php_version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP with pecl extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
extensions: :opcache | |
- run: composer install | |
- run: vendor/bin/phpunit | |
if: ${{ matrix.php_version != '8.0' }} | |
- run: vendor/bin/phpunit --coverage-clover coverage.xml | |
if: ${{ matrix.php_version == '8.0' }} | |
env: | |
XDEBUG_MODE: coverage | |
- name: Upload coverage to Codecov | |
if: ${{ matrix.php_version == '8.0' }} | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml | |
verbose: true |