-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 908 Bytes
/
test.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: Test
on: [push]
jobs:
unit:
name: Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node lts (gallium)
uses: actions/setup-node@v3
with:
node-version: lts/gallium
- name: npm install
run: npm install
- name: unit tests
run: npm run test
- name: generate codecov report
run: npm run test:cov
- name: upload report to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
e2e:
name: End to end Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node lts (gallium)
uses: actions/setup-node@v3
with:
node-version: lts/gallium
- name: npm install
run: npm install
- name: end to end test
run: npm run test:e2e