File tree Expand file tree Collapse file tree 4 files changed +43
-9
lines changed Expand file tree Collapse file tree 4 files changed +43
-9
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ defaults: &defaults
15
15
jobs :
16
16
test :
17
17
<< : *defaults
18
+ parallelism : 2
18
19
steps :
19
20
- checkout
20
- - golang/gomod :
21
- file : " go.mod"
21
+ - golang/gomod
22
22
- run :
23
23
name : Test and collect coverages
24
24
command : |
25
- make coverage/ci
25
+ make $(circleci tests split .circleci/coverage-targets)
26
26
- codecov/upload :
27
27
file : " /tmp/ci/artifacts/coverage.out"
28
+ flags : $(if [ $CIRCLE_NODE_INDEX == 0 ]; then echo "json"; else echo "gojay"; fi)
28
29
- store_artifacts :
29
30
path : /tmp/ci/artifacts
30
31
- store_artifacts :
36
37
<< : *defaults
37
38
steps :
38
39
- checkout
39
- - golang/gomod :
40
- file : " go.mod"
40
+ - golang/gomod
41
41
- run :
42
42
name : Run lint for sources
43
43
command : |
Original file line number Diff line number Diff line change
1
+ coverage/ci
2
+ coverage/ci/gojay
Original file line number Diff line number Diff line change 1
1
coverage :
2
- precision : 2
2
+ precision : 1
3
3
round : down
4
4
range : " 70...100"
5
5
6
6
status :
7
7
project :
8
- default :
8
+ default : off
9
+ json :
10
+ flags : json
9
11
target : auto
10
12
threshold : 10%
13
+ if_not_found : success
14
+ if_ci_failed : error
15
+ gojay :
16
+ flags : gojay
17
+ target : auto
18
+ threshold : 10%
19
+ if_not_found : success
20
+ if_ci_failed : error
11
21
patch :
12
- default :
22
+ default : off
23
+ json :
24
+ flags : json
25
+ only_pulls : true
26
+ target : 50%
27
+ threshold : 10%
28
+ gojay :
29
+ flags : gojay
13
30
only_pulls : true
14
31
target : 50%
15
32
threshold : 10%
33
+ changes : false
16
34
ignore :
17
- - " internal/cmd"
18
35
- " vendor"
19
36
37
+ flags :
38
+ json :
39
+ paths :
40
+ - /
41
+ gojay :
42
+ paths :
43
+ - /
44
+
20
45
comment :
21
46
behavior : default
22
47
require_changes : true
Original file line number Diff line number Diff line change @@ -13,3 +13,10 @@ include hack/make/go.mk
13
13
14
14
# ----------------------------------------------------------------------------
15
15
# overlays
16
+
17
+ test/gojay : GO_BUILDTAGS+=gojay
18
+ test/gojay : test
19
+
20
+ coverage/ci/gojay : GO_BUILDTAGS+=gojay
21
+ coverage/ci/gojay : coverage/ci
22
+ $(call target)
You can’t perform that action at this time.
0 commit comments