1
- name : Test suite
1
+ name : Tests
2
+
3
+ # This workflow runs standard unit tests to ensure basic integrity and avoid
4
+ # regressions on pull-requests (and pushes)
2
5
3
6
on :
4
7
push :
5
8
branches :
6
- - master # allthough master is push protected we still keep it
9
+ - master # allthough master is push protected we still keep it
7
10
- development
8
- pull_request : # runs on all PR
11
+ pull_request : # runs on all PR
12
+ branches-ignore :
13
+ - release-* # on release we run an extended workflow so no need for this
9
14
10
15
jobs :
11
- # ----------------------------------
12
- # uncomment when a linter is added
13
- # ----------------------------------
14
-
15
- # lintjs:
16
- # name: Javascript lint
17
- # runs-on: ubuntu-latest
18
- # steps:
19
- # - name: checkout
20
- # uses: actions/checkout@v2
21
- #
22
- # - name: setup node
23
- # uses: actions/setup-node@v1
24
- # with:
25
- # node-version: '12.x'
26
- #
27
- # - name: cache dependencies
28
- # uses: actions/cache@v1
29
- # with:
30
- # path: ~/.npm
31
- # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32
- # restore-keys: |
33
- # ${{ runner.os }}-node-
34
- # - run: npm ci
35
- # - run: npm run lint
36
-
37
16
unittest :
38
17
name : unit tests
39
18
runs-on : ubuntu-latest
40
- # uncomment when a linter is added
41
- # needs: [lintjs]
42
19
strategy :
43
20
matrix :
44
21
node : [12, 14, 16]
@@ -61,15 +38,12 @@ jobs:
61
38
- run : npm ci
62
39
- run : npm run test:coverage
63
40
64
- # ----------------------------------
65
- # uncomment when a linter is added
66
- # ----------------------------------
67
-
68
- # - name: check coverage
69
-
70
- # with:
71
- # type: lcov
72
- # result_path: coverage/lcov.info
73
- # min_coverage: 90
74
- # token: ${{github.token}}
75
-
41
+ # with the following action we enforce PRs to have a high coverage
42
+ # and ensure, changes are tested well enough so that coverage won't fail
43
+ - name : check coverage
44
+
45
+ with :
46
+ type : lcov
47
+ result_path : coverage/lcov.info
48
+ min_coverage : 95
49
+ token : ${{github.token}}
0 commit comments