Skip to content

Commit

Permalink
chore: install nunomaduro/larastan.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed May 27, 2022
1 parent c90d7a1 commit 8ec21b1
Show file tree
Hide file tree
Showing 6 changed files with 543 additions and 125 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PHPStan

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


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

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

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

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.idea
/.vscode
/.vagrant
build
.phpunit.result.cache
.php-cs-fixer.cache
.env
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"illuminate/http": "^9.0",
"illuminate/view": "^9.0",
"laravel-zero/framework": "^9.0",
"nunomaduro/larastan": "^2.1",
"nunomaduro/termwind": "dev-feat/select"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 8ec21b1

Please sign in to comment.