Skip to content

Commit 674deb2

Browse files
committed
ci: improve e2e tests
1 parent f69fe43 commit 674deb2

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/reusable-test.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ jobs:
203203
run-e2e-tests:
204204
if: ${{ inputs.use-matrix == true }}
205205
runs-on: ubuntu-latest
206+
needs: build-modern-node
206207
# Use Playwright container for E2E tests, which has all dependencies and all browsers installed
207208
container: mcr.microsoft.com/playwright:v1.52.0-jammy
208209
env:
@@ -218,14 +219,30 @@ jobs:
218219
uses: actions/setup-node@v4
219220
with:
220221
node-version: ${{ vars.DEFAULT_NODE_VERSION }}
221-
cache: 'npm'
222-
cache-dependency-path: '**/package-lock.json'
223222

224-
- name: Install dependencies
225-
run: npm ci
223+
# - name: Install dependencies
224+
# run: npm ci
226225

227-
- name: Build package
228-
run: npm run build
226+
# - name: Build package
227+
# run: npm run build
228+
229+
- name: Restore modern node_modules cache
230+
uses: actions/cache@v4
231+
with:
232+
path: |
233+
node_modules
234+
key: ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
235+
236+
- name: Restore modern build output cache
237+
uses: actions/cache@v4
238+
with:
239+
path: |
240+
tslib
241+
lib
242+
es
243+
es-legacy
244+
umd
245+
key: ${{ runner.os }}-modern-build-output-${{ github.sha }}
229246

230247
- name: Run e2e tests in ${{ matrix.browser }}
231248
run: npm run task:run-e2e:${{ matrix.browser }}

0 commit comments

Comments
 (0)