Skip to content

Commit

Permalink
Phpstan: Use separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Apr 15, 2024
1 parent e0c4005 commit d916ff6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout code base
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Setup dependencies
run: |
composer require -n --no-progress overtrue/phplint phpstan/phpstan
composer require -n --no-progress overtrue/phplint
sudo cp -R vendor /usr/share/icinga-php
- name: PHP Lint
Expand All @@ -43,10 +43,6 @@ jobs:
if: ${{ ! cancelled() }}
run: phpcs -wps --colors

- name: PHPStan
if: ${{ ! cancelled() }}
run: ./vendor/bin/phpstan analyse

test:
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -62,7 +58,7 @@ jobs:

steps:
- name: Checkout code base
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: PHPStan

on:
pull_request:
branches:
- main

jobs:
phpstan:
uses: icinga/github-actions/.github/workflows/phpstan.yml@main

0 comments on commit d916ff6

Please sign in to comment.