From f9c34fc84d378a8b4039c1694685317ab1094b1d Mon Sep 17 00:00:00 2001 From: Razvan Grigore Date: Tue, 30 Jan 2024 07:56:06 +0200 Subject: [PATCH] Run PHPStan separately --- .github/workflows/lint.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 494c504..a647973 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -10,7 +10,7 @@ on: workflow_dispatch: jobs: - run: + phpcs: runs-on: ubuntu-latest name: PHP_CodeSniffer steps: @@ -20,10 +20,22 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: '8.2' - tools: cs2pr, phpcs, phpstan + tools: cs2pr, phpcs - name: Run phpcs run: phpcs -q --report=checkstyle . | cs2pr + phpstan: + runs-on: ubuntu-latest + name: PHPStan + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: phpstan + - name: Run PHPStan run: phpstan analyse --level=2 src tests