File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,23 @@ jobs:
32
32
- node_modules
33
33
key : build-v1-{{ .Branch }}-{{ .Revision }}
34
34
35
- test :
35
+ lint :
36
36
<< : *defaults
37
37
steps :
38
38
- checkout
39
39
- *restore-build
40
- - run : yarn test
40
+ - run : yarn test:lint:ci
41
+ - store_test_results :
42
+ path : reports
43
+
44
+ unit :
45
+ << : *defaults
46
+ steps :
47
+ - checkout
48
+ - *restore-build
49
+ - run : yarn test:unit:ci
50
+ - store_test_results :
51
+ path : reports
41
52
42
53
dist :
43
54
<< : *defaults
@@ -64,12 +75,16 @@ workflows:
64
75
package :
65
76
jobs :
66
77
- build
67
- - test :
78
+ - lint :
79
+ requires :
80
+ - build
81
+ - unit :
68
82
requires :
69
83
- build
70
84
- dist :
71
85
requires :
72
- - test
86
+ - lint
87
+ - unit
73
88
- build
74
89
filters :
75
90
branches :
Original file line number Diff line number Diff line change 5
5
6
6
# testing
7
7
/coverage
8
+ /reports
8
9
9
10
# production
10
11
/build
Original file line number Diff line number Diff line change 16
16
"eslint-plugin-jsx-a11y" : " ^6.0.2" ,
17
17
"eslint-plugin-prettier" : " ^2.6.0" ,
18
18
"eslint-plugin-react" : " ^7.4.0" ,
19
+ "jest-junit" : " ^3.6.0" ,
19
20
"prettier" : " ^1.11.1" ,
20
21
"react-scripts" : " 1.1.1"
21
22
},
25
26
"build" : " react-scripts build" ,
26
27
"test" : " yarn test:lint && yarn test:unit" ,
27
28
"test:unit" : " react-scripts test --env=jsdom" ,
29
+ "test:unit:ci" : " CI=true JEST_JUNIT_OUTPUT=reports/jest-junit.xml react-scripts test --testResultsProcessor ./node_modules/jest-junit --env=jsdom" ,
28
30
"test:lint" : " eslint ./src" ,
31
+ "test:lint:ci" : " eslint ./src --format junit -o reports/eslint-junit.xml" ,
29
32
"eject" : " react-scripts eject"
30
33
}
31
34
}
Original file line number Diff line number Diff line change @@ -4112,6 +4112,14 @@ jest-jasmine2@^20.0.4:
4112
4112
once "^1.4.0"
4113
4113
p-map "^1.1.1"
4114
4114
4115
+ jest-junit@^3.6.0 :
4116
+ version "3.6.0"
4117
+ resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-3.6.0.tgz#f4c4358e5286364a4324dc14abddd526aadfbd38"
4118
+ dependencies :
4119
+ mkdirp "^0.5.1"
4120
+ strip-ansi "^4.0.0"
4121
+ xml "^1.0.1"
4122
+
4115
4123
jest-matcher-utils@^20.0.3 :
4116
4124
version "20.0.3"
4117
4125
resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-20.0.3.tgz#b3a6b8e37ca577803b0832a98b164f44b7815612"
@@ -7420,6 +7428,10 @@ xml-name-validator@^2.0.1:
7420
7428
version "2.0.1"
7421
7429
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635"
7422
7430
7431
+ xml@^1.0.1 :
7432
+ version "1.0.1"
7433
+ resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
7434
+
7423
7435
xtend@^4.0.0, xtend@~4.0.1 :
7424
7436
version "4.0.1"
7425
7437
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
You can’t perform that action at this time.
0 commit comments