mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-02 16:39:25 -05:00
phpstan: Separate workflow
This commit is contained in:
parent
c4ca750eb1
commit
c29512890d
2 changed files with 21 additions and 14 deletions
18
.github/workflows/php.yml
vendored
18
.github/workflows/php.yml
vendored
|
|
@ -17,12 +17,12 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
|
||||
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
|
||||
os: ['ubuntu-latest']
|
||||
|
||||
steps:
|
||||
- name: Checkout code base
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
|
@ -31,13 +31,7 @@ jobs:
|
|||
tools: phpcs
|
||||
|
||||
- name: Setup dependencies
|
||||
run: |
|
||||
composer require -n --no-progress overtrue/phplint phpstan/phpstan
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2.git /icingaweb2
|
||||
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git /usr/share/icinga-php/ipl
|
||||
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git /usr/share/icinga-php/vendor
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingadb-web.git /usr/share/icingaweb2-modules/icingadb-web
|
||||
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-director.git /usr/share/icingaweb2-modules/icingaweb2-module-director
|
||||
run: composer require -n --no-progress overtrue/phplint
|
||||
|
||||
- name: PHP Lint
|
||||
if: ${{ ! cancelled() }}
|
||||
|
|
@ -47,10 +41,6 @@ jobs:
|
|||
if: ${{ ! cancelled() }}
|
||||
run: phpcs
|
||||
|
||||
- name: PHPStan
|
||||
if: ${{ ! cancelled() }}
|
||||
run: ./vendor/bin/phpstan analyse
|
||||
|
||||
test:
|
||||
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
@ -66,7 +56,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout code base
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
|
|
|||
17
.github/workflows/phpstan.yml
vendored
Normal file
17
.github/workflows/phpstan.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: PHPStan
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
phpstan:
|
||||
uses: icinga/github-actions/.github/workflows/phpstan.yml@main
|
||||
with:
|
||||
dependencies: |
|
||||
{
|
||||
"/icingaweb2" : "https://github.com/Icinga/icingaweb2.git",
|
||||
"/usr/share/icingaweb2-modules/icingadb" : "https://github.com/Icinga/icingadb-web.git",
|
||||
"/usr/share/icingaweb2-modules/director" : "https://github.com/Icinga/icingaweb2-module-director.git"
|
||||
}
|
||||
Loading…
Reference in a new issue