File tree 7 files changed +50
-1
lines changed
7 files changed +50
-1
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,11 @@ jobs:
239
239
.eslintcache
240
240
key : js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
241
241
242
+ # Go is required for uploading the test results to datadog
243
+ - uses : actions/setup-go@v2
244
+ with :
245
+ go-version : " ^1.17"
246
+
242
247
- uses : actions/setup-node@v2
243
248
with :
244
249
node-version : " 14"
@@ -262,3 +267,11 @@ jobs:
262
267
files : ./site/coverage/lcov.info
263
268
flags : unittest-js
264
269
fail_ci_if_error : true
270
+
271
+ - name : Upload DataDog Trace
272
+ if : (success() || failure()) && github.actor != 'dependabot[bot]'
273
+ env :
274
+ DATADOG_API_KEY : ${{ secrets.DATADOG_API_KEY }}
275
+ DD_DATABASE : postgresql
276
+ GIT_COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
277
+ run : go run scripts/datadog-cireport/main.go site/test_results/junit.xml
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ site/.eslintcache
20
20
site /.next /
21
21
site /node_modules /
22
22
site /storybook-static /
23
+ site /test_results /
23
24
site /yarn-error.log
24
25
coverage /
25
26
Original file line number Diff line number Diff line change 6
6
out
7
7
coverage
8
8
.next
9
- storybook-static
9
+ storybook-static
10
+ test_results
Original file line number Diff line number Diff line change @@ -15,3 +15,4 @@ yarn-error.log
15
15
coverage /
16
16
out /
17
17
storybook-static /
18
+ test_results /
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ module.exports = {
9
9
coverageReporters : [ "text" , "lcov" ] ,
10
10
displayName : "test" ,
11
11
preset : "ts-jest" ,
12
+
12
13
roots : [ "<rootDir>" ] ,
13
14
setupFilesAfterEnv : [ "<rootDir>/_jest/setupTests.ts" ] ,
14
15
transform : {
@@ -43,4 +44,15 @@ module.exports = {
43
44
"!<rootDir>/out/**/*.*" ,
44
45
"!<rootDir>/storybook-static/**/*.*" ,
45
46
] ,
47
+ reporters : [
48
+ "default" ,
49
+ [
50
+ "jest-junit" ,
51
+ {
52
+ suiteName : "Front-end Jest Tests" ,
53
+ outputDirectory : "./test_results" ,
54
+ outputName : "junit.xml" ,
55
+ } ,
56
+ ] ,
57
+ ] ,
46
58
}
Original file line number Diff line number Diff line change 50
50
"formik" : " 2.2.9" ,
51
51
"http-proxy-middleware" : " 2.0.3" ,
52
52
"jest" : " 27.5.1" ,
53
+ "jest-junit" : " 13.0.0" ,
53
54
"jest-runner-eslint" : " 1.0.0" ,
54
55
"next" : " 12.0.10" ,
55
56
"next-router-mock" : " ^0.6.5" ,
Original file line number Diff line number Diff line change @@ -7931,6 +7931,16 @@ jest-jasmine2@^27.5.1:
7931
7931
pretty-format "^27.5.1"
7932
7932
throat "^6.0.1"
7933
7933
7934
+
7935
+ version "13.0.0"
7936
+ resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-13.0.0.tgz#479be347457aad98ae8a5983a23d7c3ec526c9a3"
7937
+ integrity sha512-JSHR+Dhb32FGJaiKkqsB7AR3OqWKtldLd6ZH2+FJ8D4tsweb8Id8zEVReU4+OlrRO1ZluqJLQEETm+Q6/KilBg==
7938
+ dependencies:
7939
+ mkdirp "^1.0.4"
7940
+ strip-ansi "^6.0.1"
7941
+ uuid "^8.3.2"
7942
+ xml "^1.0.1"
7943
+
7934
7944
jest-leak-detector@^27.5.1:
7935
7945
version "27.5.1"
7936
7946
resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8"
@@ -12087,6 +12097,11 @@ uuid@^3.3.2:
12087
12097
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
12088
12098
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
12089
12099
12100
+ uuid@^8.3.2:
12101
+ version "8.3.2"
12102
+ resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
12103
+ integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
12104
+
12090
12105
v8-compile-cache-lib@^3.0.0:
12091
12106
version "3.0.0"
12092
12107
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8"
@@ -12452,6 +12467,11 @@ xml-name-validator@^3.0.0:
12452
12467
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"
12453
12468
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==
12454
12469
12470
+ xml@^1.0.1:
12471
+ version "1.0.1"
12472
+ resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
12473
+ integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=
12474
+
12455
12475
xmlchars@^2.2.0:
12456
12476
version "2.2.0"
12457
12477
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
You can’t perform that action at this time.
0 commit comments