Add composer install to release creation #222
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, xml, xmlwriter | |
coverage: none | |
- run: composer install --no-dev --no-progress --classmap-authoritative | |
- run: composer validate --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 |