-
Notifications
You must be signed in to change notification settings - Fork 50
68 lines (62 loc) · 2.01 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
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
name: E2E Tests
on:
push:
branches:
- master
- develop
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- master
- develop
jobs:
ui-chrome-tests:
runs-on: ubuntu-latest
container: cypress/browsers:node16.18.0-chrome107-ff106-edge
strategy:
fail-fast: false
env:
INFURA_KEY: ${{ secrets.INFURA_KEY }}
MONGODB_COMMENTS_DB: ${{ secrets.MONGODB_COMMENTS_DB }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOERLI_FORK_API_KEY: ${{ secrets.GOERLI_FORK_API_KEY }}
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }}
POCKET_KEY: ${{ secrets.POCKET_KEY }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
REDIS_URL: ${{ secrets.REDIS_URL }}
USE_CACHE: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node packages
run: yarn
## Download prebuilt next data
# - name: Download the build folders
# uses: actions/download-artifact@v2
# with:
# name: build
- name: 'UI Tests - Chrome'
uses: cypress-io/github-action@v3
with:
# we have already installed all dependencies above
# use (install: false) if you want to do parallel jobs.
install: false
start: yarn start:ci
## command: yarn run e2e:ci
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome
record: true
parallel: false
group: 'UI - Chrome'
spec: cypress/integration/**
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Codecov
run: |
yarn add --dev codecov
./node_modules/.bin/codecov -f combined-coverage/lcov.info