-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (42 loc) · 1.31 KB
/
playwright-production.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
name: Playwright Tests (Production)
on:
push:
branches: [ main ]
jobs:
e2e:
environment: Production
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apps/idos-sdk-e2e
env:
BASE_URL: ${{secrets.IDOS_E2E_BASE_URL}}
WALLET_SEED_PHRASE: ${{ secrets.IDOS_E2E_WALLET_SEED_PHRASE }}
WALLET_PASSWORD: ${{ secrets.IDOS_E2E_WALLET_PASSWORD }}
GRANTS_TEST_BASE_URL: ${{ secrets.IDOS_E2E_GRANTS_BASE_URL }}
CREDENTIAL_CONTENT: ${{ secrets.IDOS_E2E_CREDENTIAL_CONTENT }}
CREDENTIAL_ID: ${{ secrets.IDOS_E2E_CREDENTIAL_ID }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version-file: './.node_version'
working-directory: ./apps/idos-sdk-e2e
- name: Install dependencies
run: pnpm i
- name: Install Playwright
run: pnpm playwright install --with-deps chromium
- name: Build Synpress cache
run: xvfb-run npx synpress tests/wallet-setup
- name: Run Playwright tests
run: xvfb-run npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30