Skip to content

Commit

Permalink
Create phpstan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antbag-dev authored Sep 18, 2023
1 parent 0ab533f commit ee5c148
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHPStan

on:
push:
branches:
- main # Change this to your main branch name

jobs:
phpstan:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0' # Change to your desired PHP version

- name: Install Composer dependencies
run: composer install

- name: Run PHPStan
run: vendor/bin/phpstan analyze -c phpstan.neon # You may need to adjust the configuration file name

0 comments on commit ee5c148

Please sign in to comment.