Skip to content

Commit e5f36d3

Browse files
committed
[LiveComponent] tweak CI
1 parent fe43694 commit e5f36d3

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/.utils.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,19 @@ _run_task() {
1919
exit $ok
2020
}
2121
export -f _run_task
22+
23+
install_property_info_for_version() {
24+
local php_version="$1"
25+
local min_stability="$2"
26+
27+
if [ "$php_version" = "8.2" ]; then
28+
composer require symfony/property-info:7.1.* symfony/type-info:7.3.*
29+
elif [ "$php_version" = "8.3" ]; then
30+
composer require symfony/property-info:7.2.* symfony/type-info:7.3.*
31+
elif [ "$php_version" = "8.4" ] && [ "$min_stability" = "stable" ]; then
32+
composer require symfony/property-info:7.3.* symfony/type-info:7.3.*
33+
elif [ "$php_version" = "8.4" ] && [ "$min_stability" = "dev" ]; then
34+
composer require symfony/property-info:>=7.3 symfony/type-info:>=7.3
35+
fi
36+
}
37+
export -f install_property_info_for_version

.github/workflows/unit-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ jobs:
7171
run: |
7272
source .github/workflows/.utils.sh
7373
74-
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} '(cd src/{} && $COMPOSER_MIN_STAB && $COMPOSER_UP && $PHPUNIT)'"
74+
echo "$PACKAGES" | xargs -n1 | parallel -j +3 "_run_task {} \
75+
'(cd src/{} \
76+
&& $COMPOSER_MIN_STAB \
77+
&& $COMPOSER_UP \
78+
&& if [ {} = LiveComponent ]; then install_property_info_for_version \"${{ matrix.php-version }}\" \"${{ matrix.minimum-stability }}\"; fi \
79+
&& $PHPUNIT)'"
7580
7681
js:
7782
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)