Skip to content

Commit 4958078

Browse files
committed
Try out Codecov
1 parent 705dce6 commit 4958078

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ jobs:
3838
with:
3939
github-token: ${{ secrets.GITHUB_TOKEN }}
4040
path-to-lcov: coverage.lcov
41+
- name: Codecov
42+
uses: codecov/codecov-action@v1
43+
with:
44+
token: ${{ secrets.CODECOV_TOKEN }}
45+
file: coverage.lcov
46+
flags: unittests
47+
fail_ci_if_error: true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ example/example
2121

2222
# mac
2323
.DS_Store
24+
25+
# test coverage output
26+
coverage.out

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go)](https://pkg.go.dev/github.com/prashanthpai/sqlcache?tab=doc)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/prashanthpai/sqlcache?clear_cache=1)](https://goreportcard.com/report/github.com/prashanthpai/sqlcache)
55
[![Test status](https://github.com/prashanthpai/sqlcache/workflows/test/badge.svg?branch=master "test status")](https://github.com/prashanthpai/sqlcache/actions)
6-
[![Coverage Status](https://coveralls.io/repos/github/prashanthpai/sqlcache/badge.svg?branch=master)](https://coveralls.io/github/prashanthpai/sqlcache?branch=master)
6+
[![codecov](https://codecov.io/gh/prashanthpai/sqlcache/branch/master/graph/badge.svg)](https://codecov.io/gh/prashanthpai/sqlcache)
7+
[![coveralls](https://coveralls.io/repos/github/prashanthpai/sqlcache/badge.svg?branch=master)](https://coveralls.io/github/prashanthpai/sqlcache?branch=master)
78
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
89

910
sqlcache is an **experimental** caching middleware for `database/sql`. It
File renamed without changes.

0 commit comments

Comments
 (0)