Skip to content

Commit 3804eee

Browse files
Merge branch 'zenika-open-source:main' into main
2 parents ce4a62e + cab6d74 commit 3804eee

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,12 @@ jobs:
1717
cache: 'npm'
1818

1919
- name: Run tests
20-
run: npm t
20+
run: npm run test:ci
21+
22+
- name: Test Report
23+
uses: dorny/test-reporter@v2
24+
if: ${{ !cancelled() }}
25+
with:
26+
name: Node tests
27+
path: report.xml
28+
reporter: jest-junit

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# Useful .gitignore templates: https://github.com/github/gitignore
44
node_modules
55
dist
6-
.cache
6+
.cache
7+
report.xml

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"author": "David Da Silva",
1313
"scripts": {
1414
"test": "node --test",
15+
"test:ci": "node --test --test-reporter=junit --test-reporter-destination=report.xml ",
1516
"start": "npx http-server",
1617
"build": "echo \"No need for that\" && exit 0"
1718
},

0 commit comments

Comments
 (0)