Skip to content

Commit

Permalink
Run PHPStan separately
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanphp committed Jan 30, 2024
1 parent 2cdbf69 commit f9c34fc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
run:
phpcs:
runs-on: ubuntu-latest
name: PHP_CodeSniffer
steps:
Expand All @@ -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

0 comments on commit f9c34fc

Please sign in to comment.