Skip to content

Commit 1062cbb

Browse files
committed
Added codecov/codecov-action to workflow
1 parent c91a322 commit 1062cbb

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
with:
3232
go-version: ~${{matrix.go}}
3333
- run: go build ./...
34-
- run: go test ./...
34+
- run: go test -covermode atomic -coverprofile coverage.out -coverpkg ./... ./... || true
3535
env:
3636
ETCD_ADDR: localhost:2379
37+
- run: sed -i '/\/examples\//d' coverage.out
38+
- uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{secrets.CODECOV_TOKEN}}
41+
files: ./coverage.out
42+
flags: go-${{matrix.go}}
43+
disable_search: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Build](https://github.com/nexcode/rpcplatform/actions/workflows/build.yml/badge.svg)](https://github.com/nexcode/rpcplatform/actions/workflows/build.yml)
44
[![PkgGoDev](https://pkg.go.dev/badge/github.com/nexcode/rpcplatform)](https://pkg.go.dev/github.com/nexcode/rpcplatform)
55
[![GoReportCard](https://goreportcard.com/badge/github.com/nexcode/rpcplatform)](https://goreportcard.com/report/github.com/nexcode/rpcplatform)
6+
[![CodeCov](https://codecov.io/gh/nexcode/rpcplatform/graph/badge.svg)](https://codecov.io/gh/nexcode/rpcplatform)
67

78
An `easy-to-use` platform for creating microservices without complex infrastructure solutions.
89
Only [etcd](https://etcd.io) required. Out of the box you get a service discovery, tracing between

0 commit comments

Comments
 (0)