Skip to content

Commit b55d5d7

Browse files
committed
circleci: use v2 uploader
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent 66cb9e5 commit b55d5d7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.circleci/config.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ version: 2.1
22

33
orbs:
44
golang: cci-orb/golang@volatile
5-
codecov: codecov/codecov@1.1.4
65

76
command_vars:
87
- cache_key: &cache_key gomod-<< parameters.go-version >>-{{ checksum "go.mod" }}-{{ checksum "go.sum" }}
@@ -88,6 +87,8 @@ jobs:
8887
auth:
8988
username: $DOCKERHUB_USER
9089
password: $DOCKERHUB_PASSWORD
90+
environment:
91+
CODOCOV_VERSION: v0.1.0_5313
9192
working_directory: /go/src/go.lsp.dev/jsonrpc2
9293
resource_class: xlarge
9394
steps:
@@ -106,9 +107,13 @@ jobs:
106107
command: |
107108
mkdir -p /tmp/test-results
108109
make coverage
109-
- codecov/upload:
110-
file: "coverage.out"
110+
- run:
111+
name: Upload coverage result to Codecov
111112
when: on_success
113+
command: |
114+
curl -sLO https://github.com/codecov/uploader/releases/download/${CODOCOV_VERSION}/codecov-linux
115+
chmod +x codecov-linux
116+
./codecov-linux --file coverage.out
112117
113118
lint:
114119
parameters:

0 commit comments

Comments
 (0)