-
Notifications
You must be signed in to change notification settings - Fork 40
74 lines (63 loc) · 1.87 KB
/
e2e.yml
File metadata and controls
74 lines (63 loc) · 1.87 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
70
71
72
73
74
name: E2E Tests
permissions:
contents: read
on:
workflow_dispatch:
workflow_call:
inputs:
base-url:
description: 'The AppKit App url'
default: 'http://localhost:8081/'
required: false
type: string
wallet-url:
description: 'The wallet url'
default: 'https://react-wallet.walletconnect.com/'
required: false
type: string
secrets:
CLOUD_PROJECT_ID:
required: true
jobs:
e2e_tests:
name: 'Playwright Tests'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Build SDK
run: |
echo "Building SDK..."
yarn build
- name: Create ENV file in apps/native
working-directory: ./apps/native/
run: echo "EXPO_PUBLIC_PROJECT_ID=${{ secrets.CLOUD_PROJECT_ID }}" >> .env
- name: Install Playwright Browsers
working-directory: ./apps/native/
run: yarn playwright install chromium
## Uncomment to build the web and add ./apps/native/dist to upload the artifact
# - name: Build web app
# working-directory: ./apps/native/
# run: |
# echo "Building web app..."
# yarn build:web
- name: Run Playwright tests
working-directory: ./apps/native/
env:
BASE_URL: ${{ inputs.base-url }}
WALLET_URL: ${{ inputs.wallet-url }}
## Uncomment to see better logs in the terminal
# DEBUG: pw:api
run: |
echo "Running tests against $BASE_URL"
yarn playwright:test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: |
./apps/native/playwright-report/
./apps/native/test-results/
retention-days: 7