Skip to content

Commit 589533b

Browse files
authored
IBX-9916: Set NODE_OPTIONS inline for multirepo steps (#65)
1 parent c09f396 commit 589533b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/browser-tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,11 @@ jobs:
259259
docker compose exec -T --user www-data app sh -c 'php bin/console cache:pool:clear ${CACHE_POOL:-cache.tagaware.filesystem}'
260260
# Run setup
261261
docker compose exec -T --user www-data app sh -c "vendor/bin/ibexabehat --mode=standard --profile=setup --suite=multirepository -c=behat_ibexa_oss.yaml --tags=~@elastic"
262-
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
262+
if [[ "${{ steps.project-version.outputs.version }}" == *'5.0.x-dev'* ]]; then
263+
docker compose exec -T --user www-data app sh -c "NODE_OPTIONS='--max-old-space-size=3072' composer run post-install-cmd"
264+
else
265+
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
266+
fi
263267
# Reinstall database using the new repository
264268
docker compose exec -T --user www-data app sh -c "php bin/console ibexa:install --no-interaction"
265269
@@ -273,7 +277,11 @@ jobs:
273277
docker compose exec -T --user www-data app sh -c 'php bin/console cache:pool:clear ${CACHE_POOL:-cache.tagaware.filesystem}'
274278
# Run setup
275279
docker compose exec -T --user www-data app sh -c "vendor/bin/ibexabehat --mode=standard --profile=setup --suite=multirepository -c=behat_ibexa_oss.yaml --tags=~@solr"
276-
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
280+
if [[ "${{ steps.project-version.outputs.version }}" == *'5.0.x-dev'* ]]; then
281+
docker compose exec -T --user www-data app sh -c "NODE_OPTIONS='--max-old-space-size=3072' composer run post-install-cmd"
282+
else
283+
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
284+
fi
277285
# Reinstall database using the new repository
278286
docker compose exec -T --user www-data app sh -c "php bin/console ibexa:install --no-interaction"
279287
@@ -287,7 +295,11 @@ jobs:
287295
docker compose exec -T --user www-data app sh -c 'php bin/console cache:pool:clear ${CACHE_POOL:-cache.tagaware.filesystem}'
288296
# Run setup
289297
docker compose exec -T --user www-data app sh -c "vendor/bin/ibexabehat --mode=standard --profile=setup --suite=multirepository -c=behat_ibexa_oss.yaml --tags=@multirepository"
290-
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
298+
if [[ "${{ steps.project-version.outputs.version }}" == *'5.0.x-dev'* ]]; then
299+
docker compose exec -T --user www-data app sh -c "NODE_OPTIONS='--max-old-space-size=3072' composer run post-install-cmd"
300+
else
301+
docker compose exec -T --user www-data app sh -c "composer run post-install-cmd"
302+
fi
291303
# Reinstall database using the new repository
292304
docker compose exec -T --user www-data app sh -c "php bin/console ibexa:install --no-interaction"
293305

0 commit comments

Comments
 (0)