Skip to content

Merge pull request #1837 from msyk/master #65

Merge pull request #1837 from msyk/master

Merge pull request #1837 from msyk/master #65

Workflow file for this run

name: run-phpstan
on:
push:
branches:
- "*"
pull_request:
branches: [ 'master', 'main' ]
jobs:
run:
name: Run PHPStan
runs-on: 'ubuntu-latest'
strategy:
matrix:
level: [ 1, 2, 3 ]
include:
- current-level: 1
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup PHP
uses: shivammathur/setup-php@72ae4ccbe57f82bbe08411e84e2130bd4ba1c10f # v2.25.5
with:
php-version: '8.2'
- name: Install PHPStan
run: composer require --dev phpstan/phpstan
- name: Run PHPStan
continue-on-error: true
if: matrix.level == matrix.current-level
run: ./vendor/bin/phpstan analyse -c spec/phpstan.neon --memory-limit 512M src spec/INTER-Mediator-UnitTest --level "${{ matrix.level }}"
- name: Run PHPStan
if: matrix.level > matrix.current-level
continue-on-error: true
run: |
./vendor/bin/phpstan analyse -c spec/phpstan.neon --memory-limit 512M src spec/INTER-Mediator-UnitTest --level "${{ matrix.level }}"
exit 0