Skip to content

Commit 5a579fd

Browse files
test: add test coverage report (#18)
Signed-off-by: goflutterjava <[email protected]>
1 parent b23250d commit 5a579fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/go_unit_test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- name: setup ZooKeeper
2020
uses: shoothzj/setup-zookeeper-action@main
2121
- name: Run coverage
22-
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
22+
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
2323
- name: Upload coverage to Codecov
24-
run: bash <(curl -s https://codecov.io/bash)
24+
uses: codecov/codecov-action@v4
25+
with:
26+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# zookeeper-client-go
22

3-
![License](https://img.shields.io/badge/license-Apache2.0-green) ![Language](https://img.shields.io/badge/Language-Go-blue.svg)
3+
![License](https://img.shields.io/badge/license-Apache2.0-green) ![Language](https://img.shields.io/badge/Language-Go-blue.svg) [![version](https://img.shields.io/github/v/tag/protocol-laboratory/zookeeper-client-go?label=release&color=blue)](https://github.com/protocol-laboratory/zookeeper-client-go/releases) [![Godoc](http://img.shields.io/badge/docs-go.dev-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/protocol-laboratory/zookeeper-client-go) [![codecov](https://codecov.io/gh/protocol-laboratory/zookeeper-client-go/branch/main/graph/badge.svg)](https://codecov.io/gh/protocol-laboratory/zookeeper-client-go)
44

55
## 📋 Requirements
66

0 commit comments

Comments
 (0)