File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments