File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 14
14
- name : Install modules
15
15
run : npm i
16
16
- name : Run tests
17
- run : npm run test
17
+ run : npm run test:ci
18
+ - name : Reports the results of tests
19
+ uses : IgnusG/jest-report-action@v{ current version }
20
+ if : always() # Or use "continue-on-error: true" in previous test step
21
+ with :
22
+ access-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
node_modules
3
3
package-lock.json
4
+ junit.xml
Original file line number Diff line number Diff line change 8
8
"test" : " tests"
9
9
},
10
10
"scripts" : {
11
- "test" : " node --experimental-vm-modules node_modules/.bin/jest"
11
+ "test" : " node --experimental-vm-modules node_modules/.bin/jest" ,
12
+ "test:ci" : " npm run test -- --ci --reporters=default --reporters=jest-junit"
12
13
},
13
14
"repository" : {
14
15
"type" : " git" ,
25
26
"node" : " >=15.11.0"
26
27
},
27
28
"dependencies" : {
28
- "jest" : " ^26.6.3"
29
+ "jest" : " ^26.6.3" ,
30
+ "jest-junit" : " ^12.0.0"
29
31
},
30
32
"jest" : {
31
33
"transform" : {}
34
+ },
35
+ "jest-junit" : {
36
+ "suiteNameTemplate" : " {filepath}" ,
37
+ "classNameTemplate" : " {classname}" ,
38
+ "titleTemplate" : " {title}"
32
39
}
33
40
}
You can’t perform that action at this time.
0 commit comments