@@ -237,23 +237,23 @@ jobs:
237237 - run :
238238 name : Execute CLI E2E Tests with NPM
239239 command : |
240- node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --tmpdir=/mnt/ramdisk/e2e
240+ node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --tmpdir=/mnt/ramdisk/e2e --package ./dist/_*.tgz
241241 - when :
242242 condition :
243243 equal : ['esbuild', << parameters.subset >>]
244244 steps :
245245 - run :
246246 name : Execute CLI E2E Tests Subset with Esbuild
247247 command : |
248- node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --esbuild --tmpdir=/mnt/ramdisk/e2e --glob="{tests/basic/**,tests/build/prod-build.ts,tests/build/relative-sourcemap.ts,tests/build/styles/scss.ts,tests/build/styles/include-paths.ts,tests/commands/add/add-pwa.ts}" --ignore="tests/basic/{environment,rebuild,serve,scripts-array}.ts"
248+ node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --esbuild --tmpdir=/mnt/ramdisk/e2e --package ./dist/_*.tgz -- glob="{tests/basic/**,tests/build/prod-build.ts,tests/build/relative-sourcemap.ts,tests/build/styles/scss.ts,tests/build/styles/include-paths.ts,tests/commands/add/add-pwa.ts}" --ignore="tests/basic/{environment,rebuild,serve,scripts-array}.ts"
249249 - when :
250250 condition :
251251 equal : ['yarn', << parameters.subset >>]
252252 steps :
253253 - run :
254254 name : Execute CLI E2E Tests Subset with Yarn
255255 command : |
256- node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --yarn --tmpdir=/mnt/ramdisk/e2e --glob="{tests/basic/**,tests/update/**,tests/commands/add/**}"
256+ node ./tests/legacy-cli/run_e2e --nb-shards=${CIRCLE_NODE_TOTAL} --shard=${CIRCLE_NODE_INDEX} <<# parameters.snapshots >>--ng-snapshots<</ parameters.snapshots >> --yarn --tmpdir=/mnt/ramdisk/e2e --package ./dist/_*.tgz -- glob="{tests/basic/**,tests/update/**,tests/commands/add/**}"
257257 - fail_fast
258258
259259 test-browsers :
@@ -275,7 +275,7 @@ jobs:
275275 # Waits for the Saucelabs tunnel to be ready. This ensures that we don't run tests
276276 # too early without Saucelabs not being ready.
277277 - run : ./scripts/saucelabs/wait-for-tunnel.sh
278- - run : node ./tests/legacy-cli/run_e2e ./tests/legacy-cli/e2e/ tests/misc/browsers.ts
278+ - run : node ./tests/legacy-cli/run_e2e --package ./dist/_*.tgz --glob=" tests/misc/browsers.ts"
279279 - run : ./scripts/saucelabs/stop-tunnel.sh
280280 - fail_fast
281281
@@ -284,6 +284,10 @@ jobs:
284284 steps :
285285 - custom_attach_workspace
286286 - run : yarn build
287+ - persist_to_workspace :
288+ root : *workspace_location
289+ paths :
290+ - dist/_*.tgz
287291
288292 build-bazel-e2e :
289293 executor : action-executor
@@ -350,12 +354,14 @@ jobs:
350354 # Path where Arsenal Image Mounter files are downloaded.
351355 # Must match path in .circleci/win-ram-disk.ps1
352356 - ./aim
357+ # Build the npm packages for the e2e tests
358+ - run : yarn build
353359 # Run partial e2e suite on PRs only. Release branches will run the full e2e suite.
354360 - run :
355361 name : Execute E2E Tests
356362 command : |
357363 mkdir X:/ramdisk/e2e-main
358- node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX --tmpdir=X:/ramdisk/e2e-main
364+ node tests\legacy-cli\run_e2e.js --nb-shards=$env:CIRCLE_NODE_TOTAL --shard=$env:CIRCLE_NODE_INDEX --tmpdir=X:/ramdisk/e2e-main --package ./dist/_*.tgz
359365 - fail_fast
360366
361367workflows :
0 commit comments