name: Static analysis on: pull_request: ~ push: branches: - master jobs: phpstan: name: PHPStan runs-on: Ubuntu-20.04 steps: - name: Set up PHP uses: shivammathur/setup-php@2.9.0 with: php-version: '7.4' coverage: none - name: Checkout code uses: actions/checkout@v2 - name: Download dependencies run: composer update --no-interaction --prefer-dist - name: PHPStan uses: docker://oskarstark/phpstan-ga:0.12.70 with: entrypoint: /composer/vendor/bin/phpstan args: analyze --no-progress php-cs-fixer: name: PHP-CS-Fixer runs-on: Ubuntu-20.04 steps: - name: Checkout code uses: actions/checkout@v2 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga:2.18.2 with: args: --dry-run --diff-format udiff psalm: name: Psalm runs-on: Ubuntu-20.04 steps: - name: Checkout code uses: actions/checkout@v2 - name: Psalm uses: docker://vimeo/psalm-github-actions:4.4.1 with: args: --no-progress --show-info=false --stats roave-bc-check: name: Roave BC Check runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Roave BC Check uses: docker://nyholm/roave-bc-check-ga composer-normalize: name: Composer Normalize runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up PHP uses: shivammathur/setup-php@2.9.0 with: php-version: 7.4 coverage: none tools: composer-normalize - name: Validate composer.json run: composer validate - name: Normalize composer.json run: composer-normalize --dry-run