-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (57 loc) · 1.76 KB
/
playwright.yml
File metadata and controls
57 lines (57 loc) · 1.76 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Playwright Tests
on:
workflow_dispatch:
push:
branches: [master, next]
pull_request:
branches: [master, next]
jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- uses: actions/cache@v4
with:
path: regtest/_build
key: nigiri-${{ hashFiles('regtest/.env.defaults', '.env.regtest') }}
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Start regtest environment
run: chmod +x regtest/*.sh regtest/helpers/*.sh && ./regtest/start-env.sh
- name: Add nigiri to PATH
run: echo "${{ github.workspace }}/regtest/_build/nigiri/build" >> $GITHUB_PATH
- name: Start nostr relay
run: docker compose -f docker-compose.nak.yml up -d --build
- name: Verify environment
run: pnpm regtest:setup
- name: Run Playwright tests
run: sleep 5 && pnpm run test:e2e
env:
CI: true
- name: Capture logs on failure
if: failure()
run: |
docker logs ark 2>&1 || true
docker logs ark-wallet 2>&1 || true
docker logs boltz 2>&1 || true
docker logs boltz-lnd 2>&1 || true
docker logs boltz-fulmine 2>&1 || true
docker logs nak 2>&1 || true
- name: Cleanup
if: always()
run: |
docker compose -f docker-compose.nak.yml down -v 2>/dev/null || true
chmod +x regtest/*.sh regtest/helpers/*.sh 2>/dev/null; ./regtest/clean-env.sh