forked from lnbits/lnbits
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.09 KB
/
Copy pathe2e.yml
File metadata and controls
41 lines (38 loc) · 1.09 KB
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
name: e2e
on:
workflow_call:
workflow_dispatch:
jobs:
test-e2e:
name: test-e2e (${{ matrix.name }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: bigpayment
spec: tests/e2e/bigpayment.spec.ts
- name: paysplit
spec: tests/e2e/paysplit.spec.ts
- name: pingpong
spec: tests/e2e/pingpong.spec.ts
- name: tips
spec: tests/e2e/tips.spec.ts
steps:
- uses: actions/checkout@v4
- uses: lnbits/lnbits/.github/actions/prepare@dev
with:
python-version: "3.12"
node-version: "24.x"
npm: true
- name: Install Playwright browser
run: npm exec playwright install chromium
- name: Run ${{ matrix.name }} e2e tests
run: npm run test:e2e -- "${{ matrix.spec }}"
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.name }}
path: test-reports
if-no-files-found: ignore