Skip to content

Commit 96d531f

Browse files
committed
circleci: refactoring circleci config
1 parent 2f17ec2 commit 96d531f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.circleci/config.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
name: golang/buster
1111
tag: "1.14-buster"
1212
working_directory: /go/src/go.lsp.dev/jsonrpc2
13-
environment:
14-
GO111MODULE: "on"
1513
parallelism: 2
1614
steps:
1715
- checkout
@@ -24,24 +22,22 @@ jobs:
2422
- run:
2523
name: Test and collect coverages
2624
command: |
25+
make tools
26+
mkdir -p /tmp/test-results
2727
make $(circleci tests split .circleci/coverage-targets)
28+
environment:
29+
GOTESTSUM_JSONFILE: "/tmp/test-results/unit-test.xml"
2830
- codecov/upload:
29-
file: "/tmp/ci/artifacts/coverage.out"
31+
file: "coverage.out"
3032
flags: $(if [ $CIRCLE_NODE_INDEX == 0 ]; then echo "json"; else echo "gojay"; fi)
31-
- store_artifacts:
32-
path: /tmp/ci/artifacts
33-
- store_artifacts:
34-
path: /tmp/ci/artifacts
3533
- store_test_results:
36-
path: /tmp/ci/test-results
34+
path: /tmp/test-results
3735

3836
lint:
3937
executor:
4038
name: golang/buster
4139
tag: "1.14-buster"
4240
working_directory: /go/src/go.lsp.dev/jsonrpc2
43-
environment:
44-
GO111MODULE: "on"
4541
parallelism: 2
4642
steps:
4743
- checkout

0 commit comments

Comments
 (0)