Skip to content

Commit 2d48843

Browse files
sukhwinder33445nilmerg
authored andcommitted
Phpstan: Separate workflow
1 parent ef7f53c commit 2d48843

File tree

2 files changed

+17
-46
lines changed

2 files changed

+17
-46
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -31,48 +31,7 @@ jobs:
3131
tools: phpcs
3232

3333
- name: Setup dependencies
34-
run: |
35-
composer require -n --no-progress overtrue/phplint phpunit/phpunit phpstan/phpstan
36-
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2.git /icingaweb2
37-
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git /usr/share/icinga-php/vendor
38-
sudo git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git /usr/share/icinga-php/ipl
39-
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-cube.git /usr/share/icingaweb2-modules/cube
40-
sudo git clone --depth 1 https://github.com/Icinga/icingadb-web.git /usr/share/icingaweb2-modules/icingadb
41-
42-
- name: Setup Incubator
43-
run: |
44-
sudo git clone --depth 1 https://github.com/Icinga/icingaweb2-module-incubator /usr/share/icingaweb2-modules/incubator
45-
cd /usr/share/icingaweb2-modules/incubator
46-
composer require --no-update \
47-
"gipfl/calendar": "dev-master as 99.x-dev" \
48-
"gipfl/cli": "dev-master as 99.x-dev" \
49-
"gipfl/curl": "dev-master as 99.x-dev" \
50-
"gipfl/data-type": "dev-master as 99.x-dev" \
51-
"gipfl/db-migration": "dev-master as 99.x-dev" \
52-
"gipfl/diff": "dev-master as 99.x-dev" \
53-
"gipfl/format": "dev-master as 99.x-dev" \
54-
"gipfl/icinga-bundles": "dev-master as 99.x-dev" \
55-
"gipfl/icinga-cli-daemon": "dev-master as 99.x-dev" \
56-
"gipfl/icingaweb2": "dev-master as 99.x-dev" \
57-
"gipfl/influxdb": "dev-master as 99.x-dev" \
58-
"gipfl/json": "dev-master as 99.x-dev" \
59-
"gipfl/linux-health": "dev-master as 99.x-dev" \
60-
"gipfl/log": "dev-master as 99.x-dev" \
61-
"gipfl/process": "dev-master as 99.x-dev" \
62-
"gipfl/protocol-jsonrpc": "dev-master as 99.x-dev" \
63-
"gipfl/protocol-netstring": "dev-master as 99.x-dev" \
64-
"gipfl/react-utils": "dev-master as 99.x-dev" \
65-
"gipfl/simple-daemon": "dev-master as 99.x-dev" \
66-
"gipfl/socket": "dev-master as 99.x-dev" \
67-
"gipfl/stream": "dev-master as 99.x-dev" \
68-
"gipfl/systemd": "dev-master as 99.x-dev" \
69-
"gipfl/translation": "dev-master as 99.x-dev" \
70-
"gipfl/web": "dev-master as 99.x-dev" \
71-
"gipfl/zfdb": "dev-master as 99.x-dev" \
72-
"gipfl/zfdbstore": "dev-master as 99.x-dev"
73-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
74-
git config user.name "github-actions[bot]"
75-
bin/make-release.sh snapshot
34+
run: composer require -n --no-progress overtrue/phplint phpunit/phpunit
7635

7736
- name: PHP Lint
7837
if: ${{ ! cancelled() }}
@@ -82,10 +41,6 @@ jobs:
8241
if: ${{ ! cancelled() }}
8342
run: phpcs
8443

85-
- name: PHPStan
86-
if: ${{ ! cancelled() }}
87-
run: ./vendor/bin/phpstan analyse
88-
8944
test:
9045
name: Unit tests with php ${{ matrix.php }} on ${{ matrix.os }}
9146
runs-on: ${{ matrix.os }}

.github/workflows/phpstan.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: PHPStan
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
phpstan:
8+
uses: icinga/github-actions/.github/workflows/phpstan.yml@main
9+
with:
10+
dependencies: |
11+
{
12+
"/icingaweb2" : "https://github.com/Icinga/icingaweb2.git",
13+
"/usr/share/icingaweb2-modules/icingadb" : "https://github.com/Icinga/icingadb-web.git",
14+
"/usr/share/icingaweb2-modules/cube" : "https://github.com/Icinga/icingaweb2-module-cube.git",
15+
"/usr/share/icingaweb2-modules/incubator" : "-b stable/0.22.0 https://github.com/Icinga/icingaweb2-module-incubator"
16+
}

0 commit comments

Comments
 (0)