generated from ergebnis/php-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Split compiling and testing Phar
- Loading branch information
1 parent
d09ea05
commit 2694966
Showing
1 changed file
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,9 +163,6 @@ jobs: | |
dependencies: | ||
- "locked" | ||
|
||
env: | ||
PHPUNIT_SLOW_TEST_DETECTOR_PHAR: ".build/phar/phpunit-slow-test-detector.phar" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
|
@@ -218,16 +215,15 @@ jobs: | |
run: ".phive/box compile --ansi --config=box.json" | ||
|
||
- name: "Show info about phpunit-slow-test-detector.phar with humbug/box" | ||
run: ".phive/box info ${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }} --ansi --list" | ||
run: ".phive/box info .build/phar/phpunit-slow-test-detector.phar --ansi --list" | ||
|
||
- name: "Install ${{ matrix.dependencies }} dependencies for running phar tests with composer" | ||
uses: "ergebnis/.github/actions/composer/[email protected].0" | ||
- name: "Upload Phar" | ||
uses: "actions/[email protected].0" | ||
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
working-directory: "test/Phar/Version10/" | ||
|
||
- name: "Run phar tests with phpunit/phpunit" | ||
run: "test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml" | ||
name: "phpunit-slow-test-detector-phar" | ||
overwrite: true | ||
path: ".build/phar/phpunit-slow-test-detector.phar" | ||
retention-days: 1 | ||
|
||
dependency-analysis: | ||
name: "Dependency Analysis" | ||
|
@@ -451,6 +447,9 @@ jobs: | |
|
||
timeout-minutes: 5 | ||
|
||
needs: | ||
- "compile-phar" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -591,3 +590,22 @@ jobs: | |
- name: "Run end-to-end tests with phpunit/phpunit:11.0.x-dev" | ||
if: "matrix.phpunit-version == '11.0.x-dev'" | ||
run: "vendor/bin/phpunit --colors=always --configuration=test/EndToEnd/Version11/phpunit.xml" | ||
|
||
- name: "Download Phar" | ||
if: "matrix.phpunit-version == '10.0.0'" | ||
uses: "actions/[email protected]" | ||
with: | ||
name: "phpunit-slow-test-detector-phar" | ||
path: ".build/phar/phpunit-slow-test-detector.phar" | ||
|
||
- name: "Install ${{ matrix.dependencies }} dependencies for running phar tests with composer" | ||
if: "matrix.phpunit-version == '10.0.0'" | ||
uses: "ergebnis/.github/actions/composer/[email protected]" | ||
with: | ||
dependencies: "${{ matrix.dependencies }}" | ||
working-directory: "test/Phar/Version10/" | ||
|
||
- name: "Run phar tests with phpunit/phpunit" | ||
if: "matrix.phpunit-version == '10.0.0'" | ||
run: "test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml" | ||
|