@@ -99,24 +99,23 @@ jobs:
99
99
CYPRESS_VERIFY_TIMEOUT : 60000
100
100
steps :
101
101
- uses : actions/checkout@v4
102
- - uses : pnpm/action-setup@v3
102
+ with :
103
+ submodules : true
104
+ - uses : pnpm/action-setup@v4
103
105
- uses : actions/setup-node@v4
104
106
with :
105
107
node-version : ${{ matrix.node-version }}
106
108
cache : ' pnpm'
107
109
108
- - uses : actions/cache/restore@v4
109
- id : cache-restore
110
+ # use artifacts to share the playground across different jobs
111
+ - uses : actions/download-artifact@v4
110
112
with :
111
- path : outfile.cjs
112
- key : ${{ github.sha }}-${{ hashFiles('pnpm-lock.yaml') }}
113
- - name : Build the package on cache miss
114
- if : steps.cache-restore.outputs.cache-hit != 'true'
115
- run : pnpm install && pnpm build
116
- - name : Snapshot
117
- run : pnpm snapshot && echo "{}" > playground/package.json && mv playground ../playground
113
+ name : build-output
114
+
115
+ - name : Install dependencies to avoid tsconfig warnings
116
+ run : pnpm install
118
117
- name : Install dependencies in playground
119
- working-directory : .. /playground
118
+ working-directory : ./playground
120
119
run : pnpm install --no-frozen-lockfile
121
120
122
121
# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62
@@ -151,19 +150,19 @@ jobs:
151
150
152
151
- name : Download Cypress
153
152
if : ${{ contains(matrix.e2e-framework, 'cypress') }}
154
- working-directory : .. /playground
153
+ working-directory : ./playground/cypress
155
154
run : |
156
- pnpm --filter "{cypress}" exec cypress cache list
157
- pnpm --filter "{cypress}" exec cypress install
155
+ pnpm exec cypress cache list
156
+ pnpm exec cypress install
158
157
159
158
- if : ${{ contains(matrix.e2e-framework, 'playwright') }}
160
159
name : Install Playwright dependencies
161
- working-directory : .. /playground
162
- run : pnpm --filter "{playwright}" exec playwright install --with-deps
160
+ working-directory : ./playground/playwright
161
+ run : pnpm exec playwright install --with-deps
163
162
164
163
# Run `test:e2e` in project folders contain `matrix.e2e-framework`
165
164
- name : Run e2e test script
166
- working-directory : .. /playground
165
+ working-directory : ./playground
167
166
run : pnpm --filter "{*${{ matrix.e2e-framework }}*}" test:e2e
168
167
169
168
# FIXME: `--with-tests` folders
0 commit comments