Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Add PHPStan

Add PHPStan #25

Workflow file for this run

name: Static code analysis
on:
pull_request:
push:
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: none, curl, dom, mbstring, simplexml, tokenizer
coverage: none
- run: composer update --no-progress --classmap-authoritative
- run: composer validate --no-check-version --strict
- working-directory: .dev-tools
run: composer install
- working-directory: .dev-tools
run: composer normalize --diff --dry-run --indent-size=4 --indent-style=space ../composer.json
- working-directory: .dev-tools
run: ./vendor/bin/php-cs-fixer fix -vvv --diff --dry-run
- working-directory: .dev-tools
run: ./vendor/bin/phpstan
- working-directory: .dev-tools
run: ./vendor/bin/psalm --no-progress --shepherd