File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
orbs :
4
- golang : cci-orb/golang@volatile # https://circleci.com/orbs/registry/orb/cci-orb/golang
5
- codecov : codecov/codecov@volatile # https://circleci.com/orbs/registry/orb/codecov/codecov
4
+ golang : cci-orb/golang@volatile
5
+ codecov :
codecov/[email protected]
6
+
7
+ commands :
8
+ parse_goflags :
9
+ steps :
10
+ - run :
11
+ name : " Parse CPUs"
12
+ command : |
13
+ CPUS="$(make env/JOBS)"
14
+ echo "export GOFLAGS='-p=${CPUS} -cpu=${CPUS}'" >> $BASH_ENV
6
15
7
16
jobs :
8
17
test :
37
46
name : Run go mod vendor
38
47
command : |
39
48
go mod vendor
49
+ - parse_goflags
40
50
- run :
41
51
name : Test and collect coverages
42
52
environment :
@@ -45,16 +55,16 @@ jobs:
45
55
# https://github.com/gotestyourself/gotestsum#junit-xml
46
56
GOTESTSUM_JUNITFILE : /tmp/test-results/tests.xml
47
57
# https://github.com/gotestyourself/gotestsum#finding-and-skipping-slow-tests
48
- GOTESTSUM_JSONFILE : /tmp/test-artifacts /tests.json
58
+ GOTESTSUM_JSONFILE : /tmp/test-results /tests.json
49
59
command : |
50
- mkdir -p /tmp/test-results /tmp/test-artifacts
60
+ mkdir -p /tmp/test-results
51
61
make coverage
52
62
- codecov/upload :
53
63
file : " coverage.out"
54
64
- store_test_results :
55
65
path : /tmp/test-results
56
66
- store_artifacts :
57
- path : /tmp/test-artifacts
67
+ path : /tmp/test-results
58
68
59
69
lint :
60
70
parameters :
You can’t perform that action at this time.
0 commit comments