-
Notifications
You must be signed in to change notification settings - Fork 169
69 lines (57 loc) · 1.68 KB
/
test-wallet.yaml
File metadata and controls
69 lines (57 loc) · 1.68 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
58
59
60
61
62
63
64
65
66
67
68
69
name: Wallet Tests (Container)
on:
workflow_dispatch:
# push:
# paths:
# #all files
# - '**'
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
jobs:
wallets-container:
name: wallets (container)
timeout-minutes: 20
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.56.1-jammy
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.23.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install system dependencies
run: |
apt-get update
apt-get install -y parallel
- name: Verify Playwright installation
run: |
echo "Checking Playwright installation..."
pnpm exec playwright --version
echo "Checking browser installations..."
pnpm exec playwright show-report || true
echo "Cache contents:"
ls -la ~/.cache/ms-playwright/ || echo "No cache found"
- name: Run wallet tests
env:
SECRET_WORDS: ${{ secrets.SECRET_WORDS }}
run: |
parallel --lb --halt now,success=1,fail=1 ::: \
"pnpm dev" \
"pnpm wait-on http://localhost:3000 && xvfb-run --auto-servernum pnpm e2e:wallet"
- uses: actions/upload-artifact@v4
if: always()
with:
name: wallets-report-playwright-action
path: |
playwright-report/
test-results/
*.png
retention-days: 30