File tree Expand file tree Collapse file tree 1 file changed +14
-32
lines changed Expand file tree Collapse file tree 1 file changed +14
-32
lines changed Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- setup :
8
- runs-on : ubuntu-latest
9
- steps :
10
- - uses : actions/checkout@v4
11
-
12
- - name : Setup PHP
13
- uses : shivammathur/setup-php@v2
14
- with :
15
- php-version : ' 8.0'
16
- coverage : pcov
17
- tools : composer:v2
18
- ini-values : memory_limit=512M
19
-
20
- - name : Cache PHP setup
21
- uses : actions/cache@v4
22
- with :
23
- path : |
24
- /opt/hostedtoolcache/php
25
- ~/.composer/cache
26
- key : php-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
27
- restore-keys : |
28
- php-${{ runner.os }}-
29
-
30
7
coverage :
31
- needs : setup
32
8
runs-on : ubuntu-latest
33
9
strategy :
34
10
fail-fast : false
@@ -52,22 +28,28 @@ jobs:
52
28
steps :
53
29
- uses : actions/checkout@v4
54
30
55
- - name : Restore PHP setup
56
- uses : actions/cache@v4
31
+ - name : Setup PHP
32
+ uses : shivammathur/setup-php@v2
57
33
with :
58
- path : |
59
- /opt/hostedtoolcache/php
60
- ~/.composer/cache
61
- key : php-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
62
- restore-keys : |
63
- php-${{ runner.os }}-
34
+ php-version : ' 8.0'
35
+ coverage : pcov
36
+ tools : composer:v2
37
+ ini-values : memory_limit=512M
64
38
65
39
- name : Install dependencies
66
40
working-directory : ${{ matrix.module }}
67
41
run : composer install --prefer-dist --no-progress
68
42
43
+ - name : Add ReturnTypeWillChange attribute
44
+ run : |
45
+ if [ -f "zmsentities/src/Zmsentities/Schema/Entity.php" ]; then
46
+ sed -i '1,/class Entity/s/class Entity/#[\ReturnTypeWillChange]\nclass Entity/' zmsentities/src/Zmsentities/Schema/Entity.php
47
+ fi
48
+
69
49
- name : Run tests with coverage
70
50
working-directory : ${{ matrix.module }}
51
+ env :
52
+ XDEBUG_MODE : coverage
71
53
run : |
72
54
mkdir -p coverage
73
55
vendor/bin/phpunit --coverage-html coverage/html --coverage-clover coverage/clover.xml
You can’t perform that action at this time.
0 commit comments