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 1414 - name : Install modules
1515 run : npm i
1616 - 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 11.DS_Store
22node_modules
33package-lock.json
4+ junit.xml
Original file line number Diff line number Diff line change 88 "test" : " tests"
99 },
1010 "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"
1213 },
1314 "repository" : {
1415 "type" : " git" ,
2526 "node" : " >=15.11.0"
2627 },
2728 "dependencies" : {
28- "jest" : " ^26.6.3"
29+ "jest" : " ^26.6.3" ,
30+ "jest-junit" : " ^12.0.0"
2931 },
3032 "jest" : {
3133 "transform" : {}
34+ },
35+ "jest-junit" : {
36+ "suiteNameTemplate" : " {filepath}" ,
37+ "classNameTemplate" : " {classname}" ,
38+ "titleTemplate" : " {title}"
3239 }
3340}
You can’t perform that action at this time.
0 commit comments