Skip to content

Commit

Permalink
Add larastan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Sep 29, 2023
1 parent 6308f6f commit c66cefe
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Larastan

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

jobs:
larastan:
name: larastan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

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

- name: Run Larastan
run: ./vendor/bin/phpstan --error-format=github
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"post-autoload-dump": [
"@php ./vendor/bin/testbench package:discover --ansi"
],
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest -p",
"format": "vendor/bin/pint --dirty"
},
Expand Down

0 comments on commit c66cefe

Please sign in to comment.