Skip to content

Commit

Permalink
Create phpstan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RusselViola authored Oct 25, 2024
1 parent f859e33 commit 79aa468
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: phpstan

on: [push]

jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6

- name: Get custom PHAR
run: |
curl --silent -H "User-agent: cURL (https://github.com/php-actions)" -L \
"https://www.getrelease.download/phpstan/phpstan/1.8.11/phar" > custom-phpstan.phar
- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
path: src/ inc/
vendored_phpstan_path: custom-phpstan.phar
command: --version

0 comments on commit 79aa468

Please sign in to comment.