Skip to content

Commit 8d51c86

Browse files
committed
Merge branch 'master' into release-3.x
2 parents 33dcdea + b759aa5 commit 8d51c86

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/php.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ jobs:
138138
- name: Get composer cache directory
139139
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV"
140140

141+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
142+
shell: bash
143+
run: |
144+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
145+
if [ -z "$ROOT_VERSION" ]; then
146+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
147+
exit 1
148+
fi
149+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$env:GITHUB_ENV"
150+
141151
- name: Cache composer dependencies
142152
uses: actions/cache@v6
143153
with:
@@ -151,7 +161,6 @@ jobs:
151161
- name: Run unit tests
152162
run: vendor/bin/phpunit --no-coverage
153163

154-
155164
quality:
156165
name: Quality control
157166
needs: [unit-tests-linux]

0 commit comments

Comments
 (0)