-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (44 loc) · 1.11 KB
/
e2e-tests.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: E2E Tests
on:
pull_request:
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Lib
uses: ./.github/actions/prepare
- name: Prepare Demo
uses: ./.github/actions/prepare
with:
folder: 'demo'
- name: Setup E2E Environment
uses: ./.github/actions/setup-e2e-env
- name: Run tests
run: |
cd demo
juno dev start --headless &
cd ..
npm run e2e:ci
- name: Upload Playwright report on failure
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 3
- name: Upload Playwright results on failure
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-results
path: test-results/
retention-days: 3
may-merge:
needs: ['e2e']
runs-on: ubuntu-latest
steps:
- name: Cleared for merging
run: echo OK