Skip to content

Commit

Permalink
ci: add PHPStan workflow (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine authored Jun 20, 2024
1 parent 6ee377a commit ca3e070
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PHPStan Static Analysis

on:
pull_request:
paths-ignore:
- '**/*.md'

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

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

- name: Install Dependencies
run: composer install

- name: Run PHPStan
run: composer phpstan
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lint": "parallel-lint -e php --no-colors --exclude vendor .",
"phpcs": "phpcs",
"phpcs:fix": "phpcbf",
"phpstan": "phpstan analyze --ansi --memory-limit=1G",
"phpstan": "phpstan analyze --ansi --memory-limit=1G -v",
"suite": [
"@lint",
"@phpcs",
Expand Down

0 comments on commit ca3e070

Please sign in to comment.