-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (35 loc) · 1 KB
/
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
name: End-to-end tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
- name: Build extension
working-directory: ./extension
run: |
yarn install --immutable
yarn build
- run: yarn install --immutable
working-directory: ./e2e-tests
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
- name: Run end-to-end tests
uses: mujo-code/[email protected]
env:
CI: "true"
SEED_PHRASE: ${{ secrets.E2E_TESTS_SEED_PHRASE }}
with:
args: yarn --cwd ./e2e-tests start
- name: Upload failing test screenshots
if: failure()
uses: actions/upload-artifact@v3
with:
name: failing-test-screenshots
path: e2e-tests/output/screenshots
retention-days: 7