Skip to content

Commit

Permalink
Split PHPStan and Psalm CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Oct 7, 2024
1 parent 1e218fe commit c272180
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
composer-options: --no-ansi --no-interaction --no-progress
- name: Run ecs check
run: vendor/bin/ecs check
static-analysis:
name: Static Analysis
phpstan:
name: PHPStan
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand All @@ -37,10 +37,26 @@ jobs:
with:
dependency-versions: locked
composer-options: --no-ansi --no-interaction --no-progress
- name: Run PHPStan analyse
- name: Run analyse
run: vendor/bin/phpstan analyse --memory-limit 2G
- name: Run Psalm analyse
run: vendor/bin/psalm --threads=1
psalm:
name: Psalm
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
- name: Install composer dependencies
uses: ramsey/composer-install@v3
with:
dependency-versions: locked
composer-options: --no-ansi --no-interaction --no-progress
- name: Run analyse
run: vendor/bin/psalm
test:
name: Tests
runs-on: ${{ matrix.operating-system }}
Expand Down

0 comments on commit c272180

Please sign in to comment.