Skip to content

Commit

Permalink
Add phpstan action
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Sommer <[email protected]>
  • Loading branch information
Erikmitk committed Jan 26, 2025
1 parent 7c6b943 commit 8f96c37
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/php-code-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PHP Code Scanning

on:
push:
branches:
- '*' # Trigger on commits to any branch
pull_request:
branches:
- 'master' # Trigger for PRs targeting the 'master' branch

jobs:
phpstan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install dependencies
run: |
composer install --no-interaction --prefer-dist
- name: Run PHPStan
run: |
vendor/bin/phpstan
continue-on-error: true

0 comments on commit 8f96c37

Please sign in to comment.