Skip to content

Commit db86eb0

Browse files
committed
upload spec results to codecov
1 parent abe0074 commit db86eb0

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ jobs:
4444
uses: codecov/codecov-action@v5
4545
with:
4646
token: ${{ secrets.CODECOV_TOKEN }}
47+
48+
- name: Upload test results to Codecov
49+
if: ${{ !cancelled() }}
50+
uses: codecov/test-results-action@v1
51+
with:
52+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ yarn-debug.log*
3333
yarn-error.log*
3434
*.mp4
3535
/DS/.idea
36+
/junit.xml

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ module.exports = {
9999
// projects: null,
100100

101101
// Use this configuration option to add custom reporters to Jest
102-
// reporters: undefined,
102+
reporters: [
103+
'jest-junit',
104+
],
103105

104106
// Automatically reset mock state between every test
105107
// resetMocks: false,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
"jest": "^29.7.0",
147147
"jest-css-modules-transform": "^4.4.2",
148148
"jest-environment-jsdom": "^29.7.0",
149+
"jest-junit": "^16.0.0",
149150
"nodemon": "^3.1.10",
150151
"prop-types": "^15.8.1",
151152
"react": "^18.3.1",

yarn.lock

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4854,6 +4854,7 @@ __metadata:
48544854
jest: "npm:^29.7.0"
48554855
jest-css-modules-transform: "npm:^4.4.2"
48564856
jest-environment-jsdom: "npm:^29.7.0"
4857+
jest-junit: "npm:^16.0.0"
48574858
nodemon: "npm:^3.1.10"
48584859
prop-types: "npm:^15.8.1"
48594860
react: "npm:^18.3.1"
@@ -10052,6 +10053,18 @@ __metadata:
1005210053
languageName: node
1005310054
linkType: hard
1005410055

10056+
"jest-junit@npm:^16.0.0":
10057+
version: 16.0.0
10058+
resolution: "jest-junit@npm:16.0.0"
10059+
dependencies:
10060+
mkdirp: "npm:^1.0.4"
10061+
strip-ansi: "npm:^6.0.1"
10062+
uuid: "npm:^8.3.2"
10063+
xml: "npm:^1.0.1"
10064+
checksum: 10c0/d813d4d142341c2b51b634db7ad6ceb9849514cb58f96ec5e7e4cf4031a557133490452710c2d9dec9b1dd546334d9ca663e042d3070c3e8f102ce6217bd8e2e
10065+
languageName: node
10066+
linkType: hard
10067+
1005510068
"jest-leak-detector@npm:^29.7.0":
1005610069
version: 29.7.0
1005710070
resolution: "jest-leak-detector@npm:29.7.0"
@@ -11078,7 +11091,7 @@ __metadata:
1107811091
languageName: node
1107911092
linkType: hard
1108011093

11081-
"mkdirp@npm:^1.0.3":
11094+
"mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4":
1108211095
version: 1.0.4
1108311096
resolution: "mkdirp@npm:1.0.4"
1108411097
bin:
@@ -14477,6 +14490,15 @@ __metadata:
1447714490
languageName: node
1447814491
linkType: hard
1447914492

14493+
"uuid@npm:^8.3.2":
14494+
version: 8.3.2
14495+
resolution: "uuid@npm:8.3.2"
14496+
bin:
14497+
uuid: dist/bin/uuid
14498+
checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54
14499+
languageName: node
14500+
linkType: hard
14501+
1448014502
"uuid@npm:^9.0.0":
1448114503
version: 9.0.1
1448214504
resolution: "uuid@npm:9.0.1"
@@ -14897,6 +14919,13 @@ __metadata:
1489714919
languageName: node
1489814920
linkType: hard
1489914921

14922+
"xml@npm:^1.0.1":
14923+
version: 1.0.1
14924+
resolution: "xml@npm:1.0.1"
14925+
checksum: 10c0/04bcc9b8b5e7b49392072fbd9c6b0f0958bd8e8f8606fee460318e43991349a68cbc5384038d179ff15aef7d222285f69ca0f067f53d071084eb14c7fdb30411
14926+
languageName: node
14927+
linkType: hard
14928+
1490014929
"xmlchars@npm:^2.2.0":
1490114930
version: 2.2.0
1490214931
resolution: "xmlchars@npm:2.2.0"

0 commit comments

Comments
 (0)