-
-
Notifications
You must be signed in to change notification settings - Fork 11
52 lines (52 loc) · 1.45 KB
/
e2e-tests.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
name: E2E Tests
on:
workflow_dispatch:
pull_request:
paths:
- 'client/**'
push:
branches:
- master
- beta
jobs:
unittest:
name: E2E Tests
runs-on: ubuntu-18.04
steps:
- name: Checkout Commit
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 4.2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: '**/node_modules'
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.lock') }}
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build --if-present
- name: Run E2E Tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run test:e2e
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./test-results/e2e/coverage
# flags: clientunittests
# fail_ci_if_error: true
# verbose: true