-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (47 loc) · 1.16 KB
/
test.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: End to End tests
timeout-minutes: 10
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.45.0-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- run: npm run check
- run: npm run test:unit -- --run
- name: Svelte 4 e2e tests
working-directory: e2e/svelte-4
run: |
npm ci
npm run check
npm run test
env:
HOME: /root
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-s4
path: e2e/svelte-4/playwright-report/
retention-days: 30
- name: Svelte 5 e2e tests
working-directory: e2e/svelte-5
run: |
npm ci
npm run check
npm run test
env:
HOME: /root
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-s5
path: e2e/svelte-5/playwright-report/