This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Run PHPUnit in CI #40
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: 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 |