@@ -163,9 +163,6 @@ jobs:
163
163
dependencies :
164
164
- " locked"
165
165
166
- env :
167
- PHPUNIT_SLOW_TEST_DETECTOR_PHAR : " .build/phar/phpunit-slow-test-detector.phar"
168
-
169
166
steps :
170
167
- name : " Checkout"
171
168
@@ -218,16 +215,15 @@ jobs:
218
215
run : " .phive/box compile --ansi --config=box.json"
219
216
220
217
- name : " Show info about phpunit-slow-test-detector.phar with humbug/box"
221
- run : " .phive/box info ${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }} --ansi --list"
218
+ run : " .phive/box info .build/phar/phpunit-slow-test-detector.phar --ansi --list"
222
219
223
- - name : " Install ${{ matrix.dependencies }} dependencies for running phar tests with composer "
224
- uses :
" ergebnis/.github/ actions/composer/[email protected] .0"
220
+ - name : " Upload Phar "
221
+ uses :
" actions/[email protected] .0"
225
222
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"
223
+ name : " phpunit-slow-test-detector-phar"
224
+ overwrite : true
225
+ path : " .build/phar/phpunit-slow-test-detector.phar"
226
+ retention-days : 1
231
227
232
228
dependency-analysis :
233
229
name : " Dependency Analysis"
@@ -451,6 +447,9 @@ jobs:
451
447
452
448
timeout-minutes : 5
453
449
450
+ needs :
451
+ - " compile-phar"
452
+
454
453
strategy :
455
454
fail-fast : false
456
455
matrix :
@@ -591,3 +590,22 @@ jobs:
591
590
- name : " Run end-to-end tests with phpunit/phpunit:11.0.x-dev"
592
591
if : " matrix.phpunit-version == '11.0.x-dev'"
593
592
run : " vendor/bin/phpunit --colors=always --configuration=test/EndToEnd/Version11/phpunit.xml"
593
+
594
+ - name : " Download Phar"
595
+ if : " matrix.phpunit-version == '10.0.0'"
596
+
597
+ with :
598
+ name : " phpunit-slow-test-detector-phar"
599
+ path : " .build/phar/phpunit-slow-test-detector.phar"
600
+
601
+ - name : " Install ${{ matrix.dependencies }} dependencies for running phar tests with composer"
602
+ if : " matrix.phpunit-version == '10.0.0'"
603
+ uses :
" ergebnis/.github/actions/composer/[email protected] "
604
+ with :
605
+ dependencies : " ${{ matrix.dependencies }}"
606
+ working-directory : " test/Phar/Version10/"
607
+
608
+ - name : " Run phar tests with phpunit/phpunit"
609
+ if : " matrix.phpunit-version == '10.0.0'"
610
+ run : " test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml"
611
+
0 commit comments