Skip to content

Total cleanup

Total cleanup #43

Workflow file for this run

name: test
on: [push]
jobs:
php-cs-fixer:
name: PHP CS Fixer
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.0, 8.1, 8.2 ]
composer-strategy: [ lowest, stable ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache composer dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
- name: Install dependencies
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run PHP CS fixer
run: 'PHP_CS_FIXER_IGNORE_ENV=True ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run'
phpstan:
name: PHPstan
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.0, 8.1, 8.2 ]
composer-strategy: [ lowest, stable ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache composer dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
- name: Install dependencies
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run PHPstan
run: './vendor/bin/phpstan analyse src --level=max'
phpspec:
name: PHPspec
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.0, 8.1, 8.2 ]
composer-strategy: [ lowest, stable ]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache composer dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-strategy-${{ matrix.composer-strategy }}
- name: Install dependencies
run: 'composer update -W --prefer-${{ matrix.composer-strategy }} --no-ansi --no-interaction --no-progress --optimize-autoloader'
- name: Run PHPspec
run: './vendor/bin/phpspec run --config phpspec_coverage.yml'
- name: Coverage report
uses: lucassabreu/comment-coverage-clover@main
with:
file: coverage/clover.xml
min-line-coverage: 100