@@ -220,14 +220,13 @@ jobs:
220
220
- name : " Show info about phpunit-slow-test-detector.phar with humbug/box"
221
221
run : " .phive/box info ${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }} --ansi --list"
222
222
223
- - name : " Install ${{ matrix.dependencies }} dependencies for running phar tests with composer "
224
- uses :
" ergebnis/.github/ actions/composer/[email protected] .0"
223
+ - name : " Upload Phar "
224
+ uses :
" actions/[email protected] .0"
225
225
with :
226
- dependencies : " ${{ matrix.dependencies }}"
227
- working-directory : " test/Phar/Version10/"
228
-
229
- - name : " Run phar tests with phpunit/phpunit"
230
- run : " test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml"
226
+ name : " phpunit-slow-test-detector-phar"
227
+ overwrite : true
228
+ path : " ${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }}"
229
+ retention-days : 1
231
230
232
231
dependency-analysis :
233
232
name : " Dependency Analysis"
@@ -451,6 +450,9 @@ jobs:
451
450
452
451
timeout-minutes : 5
453
452
453
+ needs :
454
+ - " compile-phar"
455
+
454
456
strategy :
455
457
fail-fast : false
456
458
matrix :
@@ -510,6 +512,9 @@ jobs:
510
512
php-version : " 8.3"
511
513
dependencies : " highest"
512
514
515
+ env :
516
+ PHPUNIT_SLOW_TEST_DETECTOR_PHAR : " .build/phar/phpunit-slow-test-detector.phar"
517
+
513
518
steps :
514
519
- name : " Checkout"
515
520
@@ -591,3 +596,21 @@ jobs:
591
596
- name : " Run end-to-end tests with phpunit/phpunit:11.0.x-dev"
592
597
if : " matrix.phpunit-version == '11.0.x-dev'"
593
598
run : " vendor/bin/phpunit --colors=always --configuration=test/EndToEnd/Version11/phpunit.xml"
599
+
600
+ - name : " Download Phar"
601
+ if : " matrix.phpunit-version == '10.0.0'"
602
+
603
+ with :
604
+ name : " phpunit-slow-test-detector-phar"
605
+ path : " ${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }}"
606
+
607
+ - name : " Install ${{ matrix.dependencies }} dependencies for running phar tests with composer"
608
+ if : " matrix.phpunit-version == '10.0.0'"
609
+ uses :
" ergebnis/.github/actions/composer/[email protected] "
610
+ with :
611
+ dependencies : " ${{ matrix.dependencies }}"
612
+ working-directory : " test/Phar/Version10/"
613
+
614
+ - name : " Run phar tests with phpunit/phpunit:10.0.0"
615
+ if : " matrix.phpunit-version == '10.0.0'"
616
+ run : " test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml"
0 commit comments