55 branches : [main, next]
66
77jobs :
8- find-e2e-test-projects :
9- name : Find E2E Test Projects
10- runs-on : ubuntu-latest
11- outputs :
12- e2e-test-projects : ${{ steps.e2e-test-projects.outputs.e2e-test-projects }}
13- steps :
14- - uses : actions/checkout@v4
15-
16- - id : e2e-test-projects
17- run : echo "e2e-test-projects=$(find e2e -maxdepth 1 -type d -printf "%f\n" | jq --raw-input --slurp --compact-output 'split("\n")[1:-1]')" >> ${GITHUB_OUTPUT}
18-
198 run-tests :
20- needs :
21- - find-e2e-test-projects
229 timeout-minutes : 60
2310 strategy :
2411 fail-fast : false
2512 matrix :
26- project : ${{ fromJson(needs.find-e2e-test-projects.outputs.e2e-test-projects) }}
2713 os : [ubuntu-latest, macOS-latest, windows-latest]
2814 node-version : [18.13.0, 20, 22]
2915
3420 - isMain : false
3521 node-version : 20
3622
37- name : e2e/${{ matrix.project }}/${{ matrix. os }}/node-${{ matrix.node-version}}
23+ name : e2e/${{ matrix.os }}/node-${{ matrix.node-version}}
3824 runs-on : ${{ matrix.os }}
3925
4026 steps :
@@ -60,28 +46,23 @@ jobs:
6046 run : pnpm playwright install --with-deps
6147
6248 - name : Run setup
63- working-directory : ./e2e/${{ matrix.project }}
64- run : pnpm run --if-present setup
49+ run : pnpm --filter "./e2e/*" run --if-present setup
6550
6651 - name : Run sources
67- working-directory : ./e2e/${{ matrix.project }}
68- run : pnpm run sources
52+ run : pnpm --filter "./e2e/*" run sources
6953
7054 - name : Run dev mode tests
71- working-directory : ./e2e/${{ matrix.project }}
72- run : pnpm run test:dev
55+ run : pnpm --filter "./e2e/*" --sequential run test:dev
7356
7457 - name : Build
75- working-directory : ./e2e/${{ matrix.project }}
76- run : pnpm run build
58+ run : pnpm --filter "./e2e/*" run build
7759
7860 - name : Run preview mode tests
79- working-directory : ./e2e/${{ matrix.project }}
80- run : pnpm run test:preview
61+ run : pnpm --filter "./e2e/*" --sequential run test:preview
8162
8263 - name : Upload Playwright reports
8364 if : always()
8465 uses : actions/upload-artifact@v4
8566 with :
86- name : playwright-report__e2e_${{ matrix.project }}_${{ matrix. os }}_node-${{ matrix.node-version }}
87- path : e2e/${{ matrix.project }} /playwright-report
67+ name : playwright-report__e2e_${{ matrix.os }}_node-${{ matrix.node-version }}
68+ path : e2e/** /playwright-report
0 commit comments