mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-09 19:19:50 +08:00
ci: six e2e shards
With four, the shard of the long workspace tests took 8 minutes while the others took 4 to 5.
This commit is contained in:
@@ -43,14 +43,14 @@ jobs:
|
||||
run: npm --prefix packages/mcp-server run build && npm --prefix packages/mcp-server run check-package
|
||||
|
||||
e2e:
|
||||
# Four jobs at once, each with a quarter of the tests and one worker:
|
||||
# the same conditions per test, about a quarter of the time
|
||||
name: E2E Tests (${{ matrix.shard }}/4)
|
||||
# Six jobs at once, each with a sixth of the tests and one worker: the
|
||||
# same conditions per test, a fraction of the time
|
||||
name: E2E Tests (${{ matrix.shard }}/6)
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [1, 2, 3, 4]
|
||||
shard: [1, 2, 3, 4, 5, 6]
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Run E2E tests
|
||||
run: npm run test:e2e -- --shard=${{ matrix.shard }}/4
|
||||
run: npm run test:e2e -- --shard=${{ matrix.shard }}/6
|
||||
env:
|
||||
CI: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user