Skip to content

fix(app-builder): remove composer install from scope php action #509

fix(app-builder): remove composer install from scope php action

fix(app-builder): remove composer install from scope php action #509

Triggered via push July 24, 2024 12:41
Status Failure
Total duration 52s
Artifacts

push.yml

on: push
rebase-prs  /  rebase-prs
rebase-prs / rebase-prs
Fit to window
Zoom out
Zoom in

Annotations

3 errors
src/commands/scopePhp/scopePhp.spec.ts > command: scopePhp > installs php scoper if it isn't installed yet: apps/app-builder/src/commands/scopePhp/scopePhp.spec.ts#L80
AssertionError: expected 1st "spy" call to have been called with [ Array(3) ] - Expected + Received Array [ "composer", - ArrayContaining [ - "install", - "--no-dev", + Array [ + "require", + "--working-dir=.scoped/php-scoper", + "humbug/php-scoper:^0.17.0", + "--no-interaction", + "--no-progress", ], ObjectContaining { "cwd": StringContaining "/home/runner/work/js-pdk/js-pdk/apps/app-builder/.test", }, ] ❯ src/commands/scopePhp/scopePhp.spec.ts:80:37
src/commands/scopePhp/scopePhp.spec.ts > command: scopePhp > skips install if php scoper is already installed: apps/app-builder/src/commands/scopePhp/scopePhp.spec.ts#L112
AssertionError: expected 1st "spy" call to have been called with [ Array(3) ] - Expected + Received Array [ - "composer", - ArrayContaining [ - "install", - "--no-dev", + "php", + Array [ + "-d memory_limit=-1", + ".tmp/php-scoper/vendor/bin/php-scoper", + "add-prefix", + "--config=scoper.inc.php", + "--output-dir=.tmp/scoped/source", + "--force", + "--no-ansi", + "--no-interaction", ], ObjectContaining { "cwd": StringContaining "/home/runner/work/js-pdk/js-pdk/apps/app-builder/.test", }, ] ❯ src/commands/scopePhp/scopePhp.spec.ts:112:37
test / test
Process completed with exit code 1.