Skip to content

Commit 9e391a6

Browse files
fix(ci): trigger grouped e2e jobs for all served apps
1 parent a5da0cd commit 9e391a6

7 files changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/e2e-manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
id: check-ci
5353
run: |
5454
ci_status=0
55-
node tools/scripts/ci-is-affected.mjs --appName=3008-webpack-host || ci_status=$?
55+
node tools/scripts/ci-is-affected.mjs --appName=3008-webpack-host,3009-webpack-provider,3010-rspack-provider,3011-rspack-manifest-provider,3012-rspack-js-entry-provider || ci_status=$?
5656
if [ "$ci_status" -eq 0 ]; then
5757
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5858
elif [ "$ci_status" -eq 1 ]; then

.github/workflows/e2e-next-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
id: check-ci
5454
run: |
5555
ci_status=0
56-
node tools/scripts/ci-is-affected.mjs --appName=@module-federation/3000-home || ci_status=$?
56+
node tools/scripts/ci-is-affected.mjs --appName=@module-federation/3000-home,@module-federation/3001-shop,@module-federation/3002-checkout || ci_status=$?
5757
if [ "$ci_status" -eq 0 ]; then
5858
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5959
elif [ "$ci_status" -eq 1 ]; then

.github/workflows/e2e-next-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
id: check-ci
5252
run: |
5353
ci_status=0
54-
node tools/scripts/ci-is-affected.mjs --appName=@module-federation/3000-home || ci_status=$?
54+
node tools/scripts/ci-is-affected.mjs --appName=@module-federation/3000-home,@module-federation/3001-shop,@module-federation/3002-checkout || ci_status=$?
5555
if [ "$ci_status" -eq 0 ]; then
5656
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5757
elif [ "$ci_status" -eq 1 ]; then

.github/workflows/e2e-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
id: check-ci
5353
run: |
5454
ci_status=0
55-
node tools/scripts/ci-is-affected.mjs --appName=node-local-remote,node-remote,node-dynamic-remote-new-version,node-dynamic-remote || ci_status=$?
55+
node tools/scripts/ci-is-affected.mjs --appName=node-host,node-local-remote,node-remote,node-dynamic-remote-new-version,node-dynamic-remote,node-host-e2e || ci_status=$?
5656
if [ "$ci_status" -eq 0 ]; then
5757
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5858
elif [ "$ci_status" -eq 1 ]; then

.github/workflows/e2e-router.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
id: check-ci
5353
run: |
5454
ci_status=0
55-
node tools/scripts/ci-is-affected.mjs --appName=host,host-v5,host-vue3,remote1,remote2,remote3,remote4 || ci_status=$?
55+
node tools/scripts/ci-is-affected.mjs --appName=host,host-v5,host-vue3,remote1,remote2,remote3,remote4,remote5,remote6 || ci_status=$?
5656
if [ "$ci_status" -eq 0 ]; then
5757
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5858
elif [ "$ci_status" -eq 1 ]; then

.github/workflows/e2e-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
id: check-ci
5353
run: |
5454
ci_status=0
55-
node tools/scripts/ci-is-affected.mjs --appName=runtime-host || ci_status=$?
55+
node tools/scripts/ci-is-affected.mjs --appName=runtime-host,runtime-remote1,runtime-remote2 || ci_status=$?
5656
if [ "$ci_status" -eq 0 ]; then
5757
echo "run-e2e=true" >> "$GITHUB_OUTPUT"
5858
elif [ "$ci_status" -eq 1 ]; then

tools/scripts/ci-local.mjs

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const jobs = [
196196
steps: [
197197
setupE2E(),
198198
step('E2E Test for Runtime Demo', (ctx) =>
199-
runIfAffected(ctx, 'runtime-host', () =>
199+
runIfAffected(ctx, 'runtime-host,runtime-remote1,runtime-remote2', () =>
200200
runCommand('pnpm', ['run', 'e2e:runtime'], ctx),
201201
),
202202
),
@@ -208,13 +208,17 @@ const jobs = [
208208
steps: [
209209
setupE2E(),
210210
step('E2E Test for Manifest Demo (dev)', (ctx) =>
211-
runIfAffected(ctx, '3008-webpack-host', () =>
212-
runCommand('pnpm', ['run', 'e2e:manifest:dev'], ctx),
211+
runIfAffected(
212+
ctx,
213+
'3008-webpack-host,3009-webpack-provider,3010-rspack-provider,3011-rspack-manifest-provider,3012-rspack-js-entry-provider',
214+
() => runCommand('pnpm', ['run', 'e2e:manifest:dev'], ctx),
213215
),
214216
),
215217
step('E2E Test for Manifest Demo (prod)', (ctx) =>
216-
runIfAffected(ctx, '3008-webpack-host', () =>
217-
runCommand('pnpm', ['run', 'e2e:manifest:prod'], ctx),
218+
runIfAffected(
219+
ctx,
220+
'3008-webpack-host,3009-webpack-provider,3010-rspack-provider,3011-rspack-manifest-provider,3012-rspack-js-entry-provider',
221+
() => runCommand('pnpm', ['run', 'e2e:manifest:prod'], ctx),
218222
),
219223
),
220224
],
@@ -226,7 +230,7 @@ const jobs = [
226230
setupE2E(),
227231
step('Check CI conditions', async (ctx) => {
228232
ctx.state.shouldRun = await ciIsAffected(
229-
'node-local-remote,node-remote,node-dynamic-remote-new-version,node-dynamic-remote',
233+
'node-host,node-local-remote,node-remote,node-dynamic-remote-new-version,node-dynamic-remote,node-host-e2e',
230234
ctx,
231235
);
232236
}),
@@ -248,8 +252,10 @@ const jobs = [
248252
steps: [
249253
setupE2E(),
250254
step('E2E Test for Next.js Dev', (ctx) =>
251-
runIfAffected(ctx, '@module-federation/3000-home', () =>
252-
runCommand('pnpm', ['run', 'e2e:next:dev'], ctx),
255+
runIfAffected(
256+
ctx,
257+
'@module-federation/3000-home,@module-federation/3001-shop,@module-federation/3002-checkout',
258+
() => runCommand('pnpm', ['run', 'e2e:next:dev'], ctx),
253259
),
254260
),
255261
],
@@ -260,8 +266,10 @@ const jobs = [
260266
steps: [
261267
setupE2E(),
262268
step('E2E Test for Next.js Prod', (ctx) =>
263-
runIfAffected(ctx, '@module-federation/3000-home', () =>
264-
runCommand('pnpm', ['run', 'e2e:next:prod'], ctx),
269+
runIfAffected(
270+
ctx,
271+
'@module-federation/3000-home,@module-federation/3001-shop,@module-federation/3002-checkout',
272+
() => runCommand('pnpm', ['run', 'e2e:next:prod'], ctx),
265273
),
266274
),
267275
],
@@ -323,7 +331,7 @@ const jobs = [
323331
setupE2E(),
324332
step('Check CI conditions', async (ctx) => {
325333
ctx.state.shouldRun = await ciIsAffected(
326-
'host,host-v5,host-vue3,remote1,remote2,remote3,remote4',
334+
'host,host-v5,host-vue3,remote1,remote2,remote3,remote4,remote5,remote6',
327335
ctx,
328336
);
329337
}),

0 commit comments

Comments
 (0)