Skip to content

Commit

Permalink
Update php_stan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
theronakpatel authored Feb 22, 2024
1 parent 21a828a commit fbc485f
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions .github/workflows/php_stan.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
name: Code Review with PHPStan
name: PHPStan

on:
pull_request:
types:
- opened
- synchronize
permissions: write-all
branches:
- main
push:
branches:
- main

jobs:
code_review:
phpstan:
name: PHPStan
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6 # or alternative dependency management
- uses: php-actions/phpstan@v3
with:
path: src/
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0' # Change to your desired PHP version

- name: Install Composer dependencies
run: composer install --no-progress --no-suggest --prefer-dist

- name: Run PHPStan
run: composer phpstan

- name: Upload PHPStan results
uses: actions/upload-artifact@v2
with:
name: phpstan-results
path: phpstan-report.txt

0 comments on commit fbc485f

Please sign in to comment.