Skip to content

Commit b91b4e5

Browse files
committed
Merge branch 'master' into simplesamlphp-2.6
2 parents bc34e05 + 9f39c78 commit b91b4e5

3 files changed

Lines changed: 126 additions & 11 deletions

File tree

.github/workflows/php.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ jobs:
7979
- name: Get composer cache directory
8080
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
8181

82+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
83+
run: |
84+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
85+
if [ -z "$ROOT_VERSION" ]; then
86+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
87+
exit 1
88+
fi
89+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
90+
8291
- name: Cache composer dependencies
8392
uses: actions/cache@v5
8493
with:
@@ -141,6 +150,16 @@ jobs:
141150
- name: Get composer cache directory
142151
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$env:GITHUB_ENV"
143152

153+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
154+
shell: bash
155+
run: |
156+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
157+
if [ -z "$ROOT_VERSION" ]; then
158+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
159+
exit 1
160+
fi
161+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
162+
144163
- name: Cache composer dependencies
145164
uses: actions/cache@v5
146165
with:
@@ -184,6 +203,15 @@ jobs:
184203
- name: Get composer cache directory
185204
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
186205

206+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
207+
run: |
208+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
209+
if [ -z "$ROOT_VERSION" ]; then
210+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
211+
exit 1
212+
fi
213+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
214+
187215
- name: Cache composer dependencies
188216
uses: actions/cache@v5
189217
with:
@@ -205,7 +233,8 @@ jobs:
205233
composer-unused \
206234
--excludePackage=simplesamlphp/simplesamlphp-assets-base \
207235
--excludePackage=symfony/expression-language \
208-
--excludePackage=symfony/polyfill-intl-icu
236+
--excludePackage=symfony/polyfill-intl-icu \
237+
--excludePackage=symfony/yaml
209238
210239
- name: PHP Code Sniffer
211240
run: vendor/bin/phpcs
@@ -248,6 +277,15 @@ jobs:
248277
- name: Get composer cache directory
249278
run: echo COMPOSER_CACHE="$(composer config cache-files-dir)" >> "$GITHUB_ENV"
250279

280+
- name: Get COMPOSER_ROOT_VERSION from composer.json branch alias
281+
run: |
282+
ROOT_VERSION=$(composer config extra.branch-alias.dev-master)
283+
if [ -z "$ROOT_VERSION" ]; then
284+
echo "Could not read extra.branch-alias.dev-master from composer.json" >&2
285+
exit 1
286+
fi
287+
echo "COMPOSER_ROOT_VERSION=$ROOT_VERSION" >> "$GITHUB_ENV"
288+
251289
- name: Cache composer dependencies
252290
uses: actions/cache@v5
253291
with:

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"symfony/translation-contracts": "~3.6",
9898
"symfony/twig-bridge": "~7.4",
9999
"symfony/var-exporter": "~7.4",
100+
"symfony/yaml": "~7.4",
100101
"twig/intl-extra": "~3.21",
101102
"twig/twig": "~3.21"
102103
},

composer.lock

Lines changed: 86 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)