Skip to content

Commit 8425bd6

Browse files
committed
upload spec results to codecov
1 parent 3793e8a commit 8425bd6

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
@@ -5007,6 +5007,7 @@ __metadata:
50075007
jest: "npm:^29.7.0"
50085008
jest-css-modules-transform: "npm:^4.4.2"
50095009
jest-environment-jsdom: "npm:^29.7.0"
5010+
jest-junit: "npm:^16.0.0"
50105011
nodemon: "npm:^3.1.10"
50115012
prop-types: "npm:^15.8.1"
50125013
react: "npm:^18.3.1"
@@ -10241,6 +10242,18 @@ __metadata:
1024110242
languageName: node
1024210243
linkType: hard
1024310244

10245+
"jest-junit@npm:^16.0.0":
10246+
version: 16.0.0
10247+
resolution: "jest-junit@npm:16.0.0"
10248+
dependencies:
10249+
mkdirp: "npm:^1.0.4"
10250+
strip-ansi: "npm:^6.0.1"
10251+
uuid: "npm:^8.3.2"
10252+
xml: "npm:^1.0.1"
10253+
checksum: 10c0/d813d4d142341c2b51b634db7ad6ceb9849514cb58f96ec5e7e4cf4031a557133490452710c2d9dec9b1dd546334d9ca663e042d3070c3e8f102ce6217bd8e2e
10254+
languageName: node
10255+
linkType: hard
10256+
1024410257
"jest-leak-detector@npm:^29.7.0":
1024510258
version: 29.7.0
1024610259
resolution: "jest-leak-detector@npm:29.7.0"
@@ -11267,7 +11280,7 @@ __metadata:
1126711280
languageName: node
1126811281
linkType: hard
1126911282

11270-
"mkdirp@npm:^1.0.3":
11283+
"mkdirp@npm:^1.0.3, mkdirp@npm:^1.0.4":
1127111284
version: 1.0.4
1127211285
resolution: "mkdirp@npm:1.0.4"
1127311286
bin:
@@ -14721,6 +14734,15 @@ __metadata:
1472114734
languageName: node
1472214735
linkType: hard
1472314736

14737+
"uuid@npm:^8.3.2":
14738+
version: 8.3.2
14739+
resolution: "uuid@npm:8.3.2"
14740+
bin:
14741+
uuid: dist/bin/uuid
14742+
checksum: 10c0/bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54
14743+
languageName: node
14744+
linkType: hard
14745+
1472414746
"uuid@npm:^9.0.0":
1472514747
version: 9.0.1
1472614748
resolution: "uuid@npm:9.0.1"
@@ -15151,6 +15173,13 @@ __metadata:
1515115173
languageName: node
1515215174
linkType: hard
1515315175

15176+
"xml@npm:^1.0.1":
15177+
version: 1.0.1
15178+
resolution: "xml@npm:1.0.1"
15179+
checksum: 10c0/04bcc9b8b5e7b49392072fbd9c6b0f0958bd8e8f8606fee460318e43991349a68cbc5384038d179ff15aef7d222285f69ca0f067f53d071084eb14c7fdb30411
15180+
languageName: node
15181+
linkType: hard
15182+
1515415183
"xmlchars@npm:^2.2.0":
1515515184
version: 2.2.0
1515615185
resolution: "xmlchars@npm:2.2.0"

0 commit comments

Comments
 (0)