File tree Expand file tree Collapse file tree 4 files changed +50
-29
lines changed Expand file tree Collapse file tree 4 files changed +50
-29
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77
88jobs :
9+ get-apps :
10+ runs-on : ubuntu-latest
11+ outputs :
12+ apps : ${{ steps.output-apps.outputs.apps }}
13+ steps :
14+ - name : Check out code
15+ uses : actions/checkout@v4
16+
17+ - name : Output apps
18+ id : output-apps
19+ uses : actions/github-script@v7
20+ with :
21+ script : |
22+ const { apps } = await import('${{ github.workspace }}/examples/common/apps-list.js');
23+
24+ core.setOutput("apps", JSON.stringify(apps));
25+
926 test :
1027 timeout-minutes : 30
28+ needs : [get-apps]
1129 strategy :
12- fail-fast : true
30+ fail-fast : false
1331 matrix :
32+ app : ${{ needs.get-apps.outputs.apps }}
1433 os : [ubuntu-latest, windows-latest]
1534 runs-on : ${{ matrix.os }}
35+ name : ${{ matrix.app }} (${{ matrix.os }})
1636 steps :
1737 - name : Check out code
1838 uses : actions/checkout@v4
@@ -27,17 +47,17 @@ jobs:
2747 run : pnpm build
2848
2949 - name : Build all workers
30- run : pnpm -r build:worker
50+ run : pnpm --filter ${{ matrix.app }} build:worker
3151
3252 - name : Run playwright tests
33- run : pnpm e2e
53+ run : pnpm --filter ${{ matrix.app }} e2e
3454
3555 - name : Run playwright dev tests
36- run : pnpm e2e:dev
56+ run : pnpm --filter ${{ matrix.app }} e2e:dev
3757
3858 - uses : actions/upload-artifact@v4
3959 if : always()
4060 with :
4161 name : playwright-report
42- path : ./**/playwright-report
62+ path : ./**/playwright-report-${{ matrix.app }}-${{ matrix.os }}
4363 retention-days : 1
Original file line number Diff line number Diff line change 55.open-next
66.wrangler
77.turbo
8- dist
8+ dist
Original file line number Diff line number Diff line change 1+ // List of all e2e tested apps
2+ export const apps = [
3+ // examples
4+ "create-next-app" ,
5+ "middleware" ,
6+ "playground14" ,
7+ "playground15" ,
8+ "vercel-blog-starter" ,
9+ "ssg-app" ,
10+ // e2e
11+ "app-pages-router" ,
12+ "app-router" ,
13+ "pages-router" ,
14+ // overrides
15+ "d1-tag-next" ,
16+ "memory-queue" ,
17+ "r2-incremental-cache" ,
18+ "static-assets-incremental-cache" ,
19+ // bugs
20+ "gh-119" ,
21+ "gh-219" ,
22+ "gh-223" ,
23+ ] ;
Original file line number Diff line number Diff line change 1- // List of all e2e tested apps
2- const apps = [
3- // examples
4- "create-next-app" ,
5- "middleware" ,
6- "playground14" ,
7- "playground15" ,
8- "vercel-blog-starter" ,
9- "ssg-app" ,
10- // e2e
11- "app-pages-router" ,
12- "app-router" ,
13- "pages-router" ,
14- // overrides
15- "d1-tag-next" ,
16- "memory-queue" ,
17- "r2-incremental-cache" ,
18- "static-assets-incremental-cache" ,
19- // bugs
20- "gh-119" ,
21- "gh-219" ,
22- "gh-223" ,
23- ] as const ;
1+ import { apps } from "./apps-list.js" ;
242
253export type AppName = ( typeof apps ) [ number ] ;
264
You can’t perform that action at this time.
0 commit comments