-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (33 loc) · 1023 Bytes
/
all-demo-tests.yaml
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
name: all-demo-tests
on:
workflow_dispatch:
concurrency:
group: ci-demo
jobs:
all-demo-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: xvfb-run --auto-servernum -- npm run test:headed
env:
ENVIRONMENT_URL: https://dapp-citizen-react.vercel.app
METAMASK_SETUP_NETWORK: ${{ vars.METAMASK_SETUP_NETWORK}}
METAMASK_SETUP_PRIVATE_KEY: ${{secrets.METAMASK_SETUP_PRIVATE_KEY}}
METAMASK_SETUP_PASSWORD: ${{secrets.METAMASK_SETUP_PASSWORD}}
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-report
path: test-report/
retention-days: 30