-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (53 loc) · 1.57 KB
/
CI.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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install
run: |
npm ci
make package
npm run install:tests
- name: lint
run: npm run lint
- name: test
run: npm test
- name: upload unit coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./coverage/lcov.info
flags: unit
name: unit tests
fail_ci_if_error: true
- name: upload mocha integration coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./build/coverage/integration/javascript/mocha/lcov.info
flags: integration, mocha, javascript
name: mocha js integration tests
fail_ci_if_error: true
- name: upload jasmine integration coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./build/coverage/integration/javascript/jasmine/lcov.info
flags: integration, jasmine, javascript
name: jasmine js integration tests
fail_ci_if_error: true
- name: upload manual coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.codecov_token }}
file: ./build/coverage/manual/lcov.info
flags: manual, javascript
name: manual tests
fail_ci_if_error: true