Skip to content

Refactoring

Refactoring #2

Workflow file for this run

name: Test
on:
push: ~
pull_request: ~
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
PHP_CS_FIXER_IGNORE_ENV: true
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install composer dependencies
run: composer install --prefer-dist --no-ansi --no-scripts --no-interaction --no-progress
- name: Run PHPStan
run: composer phpstan
- name: Run PHP Coding Standards Fixer
run: composer cscheck