Skip to content

Commit

Permalink
add PHPStan to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DjordyKoert committed Jun 6, 2024
1 parent 6f009ee commit d2181f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,26 @@ jobs:

- name: Pint
run: vendor/bin/pint --test
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip
tools: composer:v2
coverage: none

- name: Setup .env
run: cp .env.example .env

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

- name: PHPStan
run: vendor/bin/phpstan --memory-limit=1G
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"scripts": {
"cs:fix": "php-cs-fixer fix",
"cs:check": "php-cs-fixer fix --dry-run --diff --verbose",
"phpstan": "phpstan --memory-limit=1G",
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump"
],
Expand Down

0 comments on commit d2181f1

Please sign in to comment.