-
Notifications
You must be signed in to change notification settings - Fork 10
84 lines (75 loc) · 2.7 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: E2E
on:
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
include:
-
repo: phpstan/phpstan-src
name: phpstan
args: --config=build/composer-dependency-analyser.php
-
repo: shipmonk-rnd/phpstan-rules
name: shipmonk-rules
args: ''
-
repo: qossmic/deptrac-src
name: deptrac
args: ''
-
repo: kreait/firebase-php
name: firebase
args: ''
-
repo: rectorphp/rector-src
name: rector
args: ''
-
repo: inspirum/balikobot-php
name: balikobot
args: ''
-
repo: tomasvotruba/unused-public
name: unused-public
args: ''
fail-fast: false
steps:
-
name: Install jq
run: sudo apt install jq
-
name: Checkout code
uses: actions/checkout@v4
with:
path: analyser
-
name: Clone ${{ matrix.repo }}
uses: actions/checkout@v4
with:
path: ${{ matrix.name }}
repository: ${{ matrix.repo }}
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
-
name: Install analyser dependencies
working-directory: analyser
run: composer install --no-progress --prefer-dist --no-interaction
-
name: Disable autoloader prepend
working-directory: ${{ matrix.name }}
run: |
echo "$(jq --indent 4 '.config += {"prepend-autoloader": false}' composer.json)" > composer.json
-
name: Install ${{ matrix.name }} dependencies
working-directory: ${{ matrix.name }}
run: composer install --no-progress --prefer-dist --no-interaction --ignore-platform-reqs
-
name: Run analyser
working-directory: ${{ matrix.name }}
run: php ../analyser/bin/composer-dependency-analyser ${{ matrix.args }}