@@ -130,6 +130,7 @@ jobs:
130
130
echo "CYPRESS_CACHE_FOLDER=$HOME\.cache\cypress-bin" >> $env:GITHUB_ENV
131
131
132
132
- name : Cache Cypress binaries
133
+ id : cache-cypress
133
134
uses : actions/cache@v3
134
135
with :
135
136
key : ${{ runner.os }}-cypress-bin
@@ -145,18 +146,17 @@ jobs:
145
146
146
147
- if : ${{ (contains(env.FEATURE_FLAGS, '--')) }}
147
148
name : Create the sample project with feature flags
148
- run : node ./outfile.cjs sample-project ${{ env.FEATURE_FLAGS }}
149
+ working-directory : ../
150
+ run : node ./create-vue/outfile.cjs sample-project ${{ env.FEATURE_FLAGS }}
149
151
150
152
- if : ${{ !(contains(env.FEATURE_FLAGS, '--')) }}
151
153
name : Create the sample project with default options
152
- run : node ./outfile.cjs sample-project --default
153
-
154
- - name : Move the sample project to the upper-level directory
155
- run : mv sample-project ../sample-project
154
+ working-directory : ../
155
+ run : node ./create-vue/outfile.cjs sample-project --default
156
156
157
157
- name : Install dependencies in the sample project
158
158
working-directory : ../sample-project
159
- run : pnpm install --no-frozen-lockfile
159
+ run : pnpm install
160
160
161
161
- if : ${{ contains(matrix.flag-for-vitest, '--') }}
162
162
name : Run unit test script
@@ -167,6 +167,10 @@ jobs:
167
167
working-directory : ../sample-project
168
168
run : pnpm build
169
169
170
+ - name : Force download Cypress on cache miss
171
+ if : steps.cache-cypress.outputs.cache-hit != 'true'
172
+ working-directory : ../sample-project
173
+ run : pnpm exec cypress install --force
170
174
171
175
- if : ${{ contains(matrix.flag-for-e2e, '--playwright') }}
172
176
name : Install Playwright dependencies
0 commit comments