Skip to content

Commit

Permalink
Merge pull request #11 from cslant/feat/setup-workflow-to-test-code-s…
Browse files Browse the repository at this point in the history
…tyle

feat/setup-workflow-to-test-code-style
  • Loading branch information
tanhongit authored Jul 9, 2024
2 parents cb9a546 + 44c11c6 commit eebad44
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PHPStan

on: [push, pull_request]

jobs:
phpstan:
runs-on: ${{ matrix.os }}
name: PHPStan - P${{ matrix.php }}

strategy:
matrix:
os: [ ubuntu-latest ]
php: [ '8.1', '8.2', '8.3' ]

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
composer install --no-interaction --no-progress --no-suggest
- name: Run PHPStan
run: |
composer analyse --error-format=github

0 comments on commit eebad44

Please sign in to comment.