-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 907 Bytes
/
e2e.yml
File metadata and controls
31 lines (30 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: e2e tests
on:
workflow_dispatch:
push:
paths:
- 'components/**'
- 'mock-sveltekit/**'
branches:
- main
pull_request:
paths:
- 'components/**'
- 'mock-sveltekit/**'
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: lts/*
- run: npm ci --workspace=components --include=dev
- run: npm run sync --workspace=components
- run: npm ci --workspace=mock-sveltekit
- run: npm run sync --workspace=mock-sveltekit
- run: npm run build --workspace=mock-sveltekit
- run: npx playwright install --with-deps chromium
- run: cd mock-sveltekit && npx playwright test