Skip to content

Commit 012e7f0

Browse files
committed
minor #866 [ci] fix incompatible flex branches globally vs tests (jrushlow)
This PR was merged into the 1.0-dev branch. Discussion ---------- [ci] fix incompatible flex branches globally vs tests Problem: In CI globally we were requiring `symfony/flex@dev-main` && in stable tests `symfony/flex` (versioned release). This caused tests to explode when `dev-main` was out of sync with `stable`. Solution: Conditionally require `dev-main` || `stable` for `symfony/flex` depending on `SYMFONY_SKELETON_STABILITY` Commits ------- fa93ba1 conditionally use flex dev
2 parents 4b94fc1 + fa93ba1 commit 012e7f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ jobs:
129129
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
130130

131131
- name: "Require symfony/flex"
132+
if: contains('stable', env.SYMFONY_SKELETON_STABILITY)
133+
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex
134+
135+
- name: "Require symfony/flex dev-main"
136+
if: contains('dev', env.SYMFONY_SKELETON_STABILITY)
132137
run: composer global require --no-progress --no-scripts --no-plugins symfony/flex dev-main
133138

134139
- name: "Composer install"

0 commit comments

Comments
 (0)