File tree 5 files changed +31
-10
lines changed
5 files changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,22 @@ runs:
11
11
with :
12
12
php-version : ' 8.3'
13
13
tools : cs2pr
14
- # https://github.com/shivammathur/setup-php/blob/6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d/README.md#jit-configuration
15
- coverage : none
16
- ini-values : opcache.enable_cli=1
14
+ coverage : none # https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#disable-coverage
15
+ # https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#jit-configuration
16
+ ini-values : >
17
+ opcache.enable_cli=1, opcache.memory_consumption=256,
18
+ opcache.jit=tracing, opcache.jit_buffer_size=64M
17
19
# https://github.com/shivammathur/setup-php/wiki/Php-extensions-loaded-on-windows-2022/aee619eb6d77e86b17a76d458316b41e58a3b677
18
20
extensions :
fileinfo # league/[email protected] requires ext-fileinfo but it's not enabled by default on windows
19
- env : # https://github.com/shivammathur/setup-php/blob/6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d/README.md#force-update-setup
20
- update : ' true'
21
- # https://github.com/shivammathur/setup-php/blob/6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d /README.md#problem-matchers
21
+ env :
22
+ update : ' true' # https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#force-update-setup
23
+ # https://github.com/shivammathur/setup-php/blob/2.31.1 /README.md#problem-matchers
22
24
- run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
23
25
working-directory : be
24
26
shell : bash
25
27
26
- # https://github.com/shivammathur/setup-php/blob/6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d /README.md#cache-composer-dependencies
27
- # https://github.com/actions/cache/blob/a2ed59d39b352305bdd2f628719a53b2cc4f9613 /examples.md#php---composer
28
+ # https://github.com/shivammathur/setup-php/blob/2.31.1 /README.md#cache-composer-dependencies
29
+ # https://github.com/actions/cache/blob/v4.0.2 /examples.md#php---composer
28
30
- id : get-composer-cache-dir
29
31
run : echo "path=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
30
32
working-directory : be
Original file line number Diff line number Diff line change 12
12
# cache: true
13
13
# # https://github.com/actions/setup-node/issues/624#issuecomment-1328681525
14
14
# cache-dependency-path: ${{ github.workspace }}/c#/*/packages.lock.json
15
- # in favor of https://github.com/actions/cache/blob/a2ed59d39b352305bdd2f628719a53b2cc4f9613 /examples.md#c---nuget
15
+ # in favor of https://github.com/actions/cache/blob/v4.0.2 /examples.md#c---nuget
16
16
# to allow saving cache even jobs failed
17
17
18
18
- id : cache-restore
Original file line number Diff line number Diff line change 13
13
# cache: yarn
14
14
# # https://github.com/actions/setup-node/issues/624#issuecomment-1328681525
15
15
# cache-dependency-path: ${{ github.workspace }}/fe/yarn.lock
16
- # in favor of https://github.com/actions/cache/blob/a2ed59d39b352305bdd2f628719a53b2cc4f9613 /examples.md#node---yarn-2
16
+ # in favor of https://github.com/actions/cache/blob/v4.0.2 /examples.md#node---yarn-2
17
17
# to allow saving cache even jobs failed
18
18
19
19
# https://github.com/actions/setup-node/issues/1027
Original file line number Diff line number Diff line change @@ -9,6 +9,24 @@ defaults:
9
9
run :
10
10
working-directory : be
11
11
jobs :
12
+ phpunit :
13
+ runs-on : ${{ inputs.runs-on }}
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : ./.github/actions/be
17
+ - uses : shivammathur/setup-php@v2
18
+ with :
19
+ ini-values : opcache.jit_buffer_size=0 # PHP Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled.
20
+ coverage : xdebug
21
+ # https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#problem-matchers
22
+ - run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
23
+ - run : ./vendor/bin/phpunit --coverage-clover clover.xml
24
+ - uses : actions/upload-artifact@v4
25
+ with :
26
+ name : coverage-${{ inputs.runs-on }}-clover.xml
27
+ path : be/clover.xml
28
+ compression-level : 9
29
+
12
30
phpstan :
13
31
runs-on : ${{ inputs.runs-on }}
14
32
steps :
Original file line number Diff line number Diff line change 31
31
<env name =" SESSION_DRIVER" value =" array" />
32
32
<env name =" TELESCOPE_ENABLED" value =" false" />
33
33
</php >
34
+ <coverage pathCoverage =" true" />
34
35
</phpunit >
You can’t perform that action at this time.
0 commit comments