Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Split compiling and testing Phar #488

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 30 additions & 7 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,13 @@ jobs:
- name: "Show info about phpunit-slow-test-detector.phar with humbug/box"
run: ".phive/box info ${{ env.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: "${{ env.PHPUNIT_SLOW_TEST_DETECTOR_PHAR }}"
retention-days: 1

dependency-analysis:
name: "Dependency Analysis"
Expand Down Expand Up @@ -451,6 +450,9 @@ jobs:

timeout-minutes: 5

needs:
- "compile-phar"

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -510,6 +512,9 @@ jobs:
php-version: "8.3"
dependencies: "highest"

env:
PHPUNIT_SLOW_TEST_DETECTOR_PHAR: ".build/phar/phpunit-slow-test-detector.phar"

steps:
- name: "Checkout"
uses: "actions/[email protected]"
Expand Down Expand Up @@ -591,3 +596,21 @@ 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: "${{ env.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:10.0.0"
if: "matrix.phpunit-version == '10.0.0'"
run: "test/Phar/Version10/vendor/bin/phpunit --colors=always --configuration=test/Phar/Version10/phpunit.xml"
Loading