File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,13 @@ jobs:
204
204
- GraphQl
205
205
- Serializer
206
206
- Symfony
207
+ include :
208
+ - php : ' 8.1'
209
+ coverage : true
210
+ - php : ' 8.2'
211
+ coverage : true
212
+ - php : ' 8.3'
213
+ coverage : true
207
214
fail-fast : false
208
215
steps :
209
216
- name : Checkout
@@ -219,7 +226,32 @@ jobs:
219
226
working-directory : src/${{ matrix.component }}
220
227
run : |
221
228
composer update
222
- vendor/bin/simple-phpunit
229
+ vendor/bin/simple-phpunit --log-junit "build/logs/phpunit/junit.xml" ${{ matrix.coverage && '--coverage-clover build/logs/phpunit/clover.xml' || '' }}
230
+ - name : Upload test artifacts
231
+ if : always()
232
+ uses : actions/upload-artifact@v3
233
+ with :
234
+ name : " phpunit-logs-php${{ matrix.php }}-${{ matrix.component }}"
235
+ path : build/logs/phpunit
236
+ continue-on-error : true
237
+ - name : Upload coverage results to Codecov
238
+ if : matrix.coverage
239
+ uses : codecov/codecov-action@v3
240
+ with :
241
+ directory : build/logs/phpunit
242
+ name : " phpunit-php${{ matrix.php }}-${{ matrix.component }}"
243
+ flags : phpunit
244
+ fail_ci_if_error : true
245
+ continue-on-error : true
246
+ - name : Upload coverage results to Coveralls
247
+ if : matrix.coverage
248
+ env :
249
+ COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
250
+ run : |
251
+ composer global require --prefer-dist --no-interaction --no-progress --ansi php-coveralls/php-coveralls
252
+ export PATH="$PATH:$HOME/.composer/vendor/bin"
253
+ php-coveralls --coverage_clover "build/logs/phpunit/clover.xml"
254
+ continue-on-error : true
223
255
224
256
behat :
225
257
name : Behat (PHP ${{ matrix.php }})
Original file line number Diff line number Diff line change 28
28
<directory >features</directory >
29
29
<directory >tests</directory >
30
30
<directory >vendor</directory >
31
+ <directory >src/**/Tests/</directory >
31
32
<file >.php-cs-fixer.dist.php</file >
32
33
</exclude >
33
34
</coverage >
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testRedirectToOperation(): void
67
67
$ iriConverter = $ this ->prophesize (IriConverterInterface::class);
68
68
$ iriConverter
69
69
->getIriFromResource (Argument::cetera ())
70
- ->will (static function (array $ args ): ? string {
70
+ ->will (static function (array $ args ): string {
71
71
return ($ args [2 ] ?? null )?->getUriTemplate() ?? '/default ' ;
72
72
});
73
73
You can’t perform that action at this time.
0 commit comments