-
Notifications
You must be signed in to change notification settings - Fork 10
152 lines (141 loc) · 5.62 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: E2E
on:
pull_request:
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
include:
-
repo: TomasVotruba/unused-public
-
repo: VincentLanglet/Twig-CS-Fixer
-
repo: alex-kalanis/kw_files
-
repo: alex-kalanis/kw_paths
-
repo: alex-kalanis/kw_storage
-
repo: cdn77/PhpFunctions
-
repo: cdn77/RabbitMQBundle
-
repo: contao/contao
cdaArgs: --config=depcheck.php
-
repo: idleberg/php-vite-manifest
-
repo: idleberg/php-wordpress-vite-assets
-
repo: inspirum/arrayable-php
-
repo: inspirum/balikobot-php
-
repo: inspirum/balikobot-php-symfony
-
repo: inspirum/xml-php
-
repo: kreait/firebase-php
-
repo: numero2/contao-marketing-suite
cdaArgs: --config=depcheck.php
-
repo: numero2/contao-opengraph3
cdaArgs: --config=depcheck.php
-
repo: oveleon/contao-company-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
-
repo: oveleon/contao-config-driver-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
-
repo: oveleon/contao-cookiebar
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
-
repo: oveleon/contao-glossary-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
-
repo: oveleon/contao-theme-compiler-bundle
composerArgs: --no-plugins
cdaArgs: --config=depcheck.php
-
repo: phpstan/phpstan-src
cdaArgs: --config=build/composer-dependency-analyser.php
-
repo: qossmic/deptrac-src
-
repo: rectorphp/rector-src
-
repo: rectorphp/swiss-knife
-
repo: shipmonk-rnd/dead-code-detector
-
repo: shipmonk-rnd/doctrine-hint-driven-sql-walker
-
repo: shipmonk-rnd/doctrine-mysql-index-hints
-
repo: shipmonk-rnd/doctrine-mysql-optimizer-hints
-
repo: shipmonk-rnd/doctrine-two-phase-migrations
-
repo: shipmonk-rnd/input-mapper
-
repo: shipmonk-rnd/name-collision-detector
-
repo: shipmonk-rnd/phpstan-rules
-
repo: teamneusta/pimcore-testing-framework
-
repo: wallabag/wallabag
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.repo }}
repository: ${{ matrix.repo }}
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
ini-file: development
-
name: List enabled extensions
run: php -m
-
name: Install analyser dependencies
working-directory: analyser
run: composer install --no-progress --no-interaction
-
name: Disable autoloader prepend
working-directory: ${{ matrix.repo }}
run: |
echo "$(jq --indent 4 '.config += {"prepend-autoloader": false}' composer.json)" > composer.json
-
name: Install ${{ matrix.repo }} dependencies
working-directory: ${{ matrix.repo }}
run: composer install --no-progress --no-interaction --ignore-platform-reqs ${{ matrix.composerArgs }}
-
name: Run analyser (--disable-ext-analysis)
working-directory: ${{ matrix.repo }}
run: php ../../analyser/bin/composer-dependency-analyser --show-all-usages --disable-ext-analysis ${{ matrix.cdaArgs }}
-
name: Run analyser
working-directory: ${{ matrix.repo }}
run: php ../../analyser/bin/composer-dependency-analyser --show-all-usages ${{ matrix.cdaArgs }}