File tree 9 files changed +362
-313
lines changed
9 files changed +362
-313
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 @@ -41,7 +41,7 @@ require (
41
41
github.com/pion/transport v0.13.0
42
42
github.com/pion/webrtc/v3 v3.1.23
43
43
github.com/psanford/memfs v0.0.0-20210214183328-a001468d78ef
44
- github.com/quasilyte/go-ruleguard/dsl v0.3.16
44
+ github.com/quasilyte/go-ruleguard/dsl v0.3.17
45
45
github.com/spf13/cobra v1.3.0
46
46
github.com/stretchr/testify v1.7.0
47
47
github.com/unrolled/secure v1.0.9
Original file line number Diff line number Diff line change @@ -1106,8 +1106,8 @@ github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1
1106
1106
github.com/prometheus/tsdb v0.7.1 /go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU =
1107
1107
github.com/psanford/memfs v0.0.0-20210214183328-a001468d78ef h1:NKxTG6GVGbfMXc2mIk+KphcH6hagbVXhcFkbTgYleTI =
1108
1108
github.com/psanford/memfs v0.0.0-20210214183328-a001468d78ef /go.mod h1:tcaRap0jS3eifrEEllL6ZMd9dg8IlDpi2S1oARrQ+NI =
1109
- github.com/quasilyte/go-ruleguard/dsl v0.3.16 h1:yJtIpd4oyNS+/c/gKqxNwoGO9+lPOsy1A4BzKjJRcrI =
1110
- github.com/quasilyte/go-ruleguard/dsl v0.3.16 /go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU =
1109
+ github.com/quasilyte/go-ruleguard/dsl v0.3.17 h1:L5xf3nifnRIdYe9vyMuY2sDnZHIgQol/fDq74FQz7ZY =
1110
+ github.com/quasilyte/go-ruleguard/dsl v0.3.17 /go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU =
1111
1111
github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237 /go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo =
1112
1112
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 /go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo =
1113
1113
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af /go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg =
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 22
22
"@material-ui/icons" : " 4.5.1" ,
23
23
"@material-ui/lab" : " 4.0.0-alpha.42" ,
24
24
"@react-theming/storybook-addon" : " 1.1.5" ,
25
- "@storybook/addon-actions" : " 6.4.18 " ,
26
- "@storybook/addon-essentials" : " 6.4.18 " ,
27
- "@storybook/addon-links" : " 6.4.18 " ,
28
- "@storybook/react" : " 6.4.18 " ,
25
+ "@storybook/addon-actions" : " 6.4.19 " ,
26
+ "@storybook/addon-essentials" : " 6.4.19 " ,
27
+ "@storybook/addon-links" : " 6.4.19 " ,
28
+ "@storybook/react" : " 6.4.19 " ,
29
29
"@testing-library/react" : " 12.1.2" ,
30
30
"@types/express" : " 4.17.13" ,
31
31
"@types/jest" : " 27.4.0" ,
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" ,
You can’t perform that action at this time.
0 commit comments