Skip to content

Commit f9a161c

Browse files
Refactor
1 parent 2f9ab38 commit f9a161c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ jobs:
246246
with:
247247
java-version: 1.8
248248

249-
- name: Run PHAR-specific end-to-end tests
250-
run: ant run-phar-specific-tests
249+
- name: Build PHAR and run the PHAR-specific tests with it
250+
run: ant build-phar-and-run-phar-specific-tests
251251

252252
- uses: actions/upload-artifact@v2
253253
if: ${{ matrix.php-version == 8.1 }}

build.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,14 @@
407407
<exec executable="${basedir}/build/scripts/version.php" outputproperty="version" failonerror="true" />
408408
</target>
409409

410-
<target name="run-phar-specific-tests" depends="clean,phar-snapshot" description="Build snapshot PHAR and run the PHAR-specific tests with it">
410+
<target name="build-phar-and-run-phar-specific-tests" depends="clean,phar-snapshot" description="Build PHAR and run the PHAR-specific tests with it">
411411
<delete dir="${basedir}/vendor"/>
412412
<delete file="${basedir}/composer.lock"/>
413413

414+
<antcall target="run-phar-specific-tests"/>
415+
</target>
416+
417+
<target name="run-phar-specific-tests" description="Run the PHAR-specific tests with it (expects build/artifacts/phpunit-snapshot.phar to exist)">
414418
<exec executable="${basedir}/build/artifacts/phpunit-snapshot.phar" taskname="phpunit" failonerror="true">
415419
<arg value="--configuration" />
416420
<arg value="tests/phar/phpunit.xml" />

0 commit comments

Comments
 (0)