Skip to content

Commit

Permalink
Add PHPStan workflow for static code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Sep 9, 2024
1 parent 973590c commit 485c6f6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PHPStan

on:
pull_request:
paths:
- '**.php'
- 'phpstan.neon.dist'
push:
branches:
- main

jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan analyse --error-format=github --debug

0 comments on commit 485c6f6

Please sign in to comment.