Skip to content

Ignore PHP version for cs fixer #20

Ignore PHP version for cs fixer

Ignore PHP version for cs fixer #20

Workflow file for this run

name: Tests
on:
push:
pull_request:
env:
PHP_CS_FIXER_IGNORE_ENV: 1
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2, 8.3, 8.4]
stability: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
coverage: none
- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Run PHP CS Fixer
run: composer phpcs
- name: Run PHPStan
run: composer phpstan
- name: Execute tests
run: composer phpunit:coverage
- name: Code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.php != 8.0 }}
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover