File tree Expand file tree Collapse file tree 4 files changed +2726
-5236
lines changed Expand file tree Collapse file tree 4 files changed +2726
-5236
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
- on : [push]
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - master
8
+ - next
9
+ - rc
4
10
5
11
jobs :
6
12
test :
@@ -13,23 +19,20 @@ jobs:
13
19
runs-on : ${{ matrix.os }}
14
20
15
21
steps :
16
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
17
23
18
24
- name : Set up Node
19
- uses : actions/setup-node@v2
25
+ uses : actions/setup-node@v3
20
26
with :
21
27
node-version : ${{ matrix.node }}
22
28
23
29
- name : Run tests
24
30
run : |
25
- npm ci
26
- npm t
31
+ npm clean-install
32
+ npm run test:coverage
27
33
28
- - name : Test & publish code coverage
29
-
30
- env :
31
- CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
34
+ - name : Upload coverage results to Coveralls
35
+ uses : coverallsapp/github-action@master
32
36
with :
33
- coverageCommand : yarn run coverage
34
- coverageLocations : |
35
- ${{github.workspace}}/test/coverage/lcov.info:lcov
37
+ github-token : ${{ secrets.GITHUB_TOKEN }}
38
+ path-to-lcov : ./test/coverage/lcov.info
Original file line number Diff line number Diff line change 1
- module . exports = {
1
+ import type { Config } from '@jest/types'
2
+
3
+ const config : Config . InitialOptions = {
2
4
preset : 'ts-jest' ,
3
5
testEnvironment : 'node' ,
4
6
clearMocks : true ,
@@ -13,3 +15,4 @@ module.exports = {
13
15
'!**/vendor/**' ,
14
16
] ,
15
17
}
18
+ export default config
You can’t perform that action at this time.
0 commit comments