-
-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (39 loc) · 1.18 KB
/
apps-extension-e2e.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
name: Extension E2E
on:
workflow_run:
workflows: ['Extension CI']
branches: [main]
types: [completed]
workflow_dispatch:
jobs:
e2e:
name: Run E2E tests
env:
VITE_APP_MODE: web
VITE_APP_DEFAULT_NETWORK: Devnet
NODE_OPTIONS: '--max_old_space_size=4096'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup deps
run: sudo apt-get install xvfb
- name: Setup env
uses: ./.github/actions/setup
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TURBO_SERVER_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }}
- name: Build extension
env:
TURBO_API: 'http://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: pallad
run: VITE_APP_MODE=$VITE_APP_MODE pnpm build:extension
- name: Install Chromium for Playwright
working-directory: apps/extension
run: pnpm test:e2e:install
- name: Run E2E tests
run: xvfb-run --auto-servernum pnpm test:e2e:extension
- uses: actions/upload-artifact@v3
with:
name: pallad-extension-e2e
path: apps/extension/playwright-report/