Skip to content

Commit b7163de

Browse files
authored
Merge pull request #2 from aj3sh/codecov
Added code coverage with Package status
2 parents b3f293f + 7175cab commit b7163de

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/nepali-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ jobs:
2323
run: go build -v ./...
2424

2525
- name: Test
26-
run: go test -v ./... -cover
26+
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
27+
28+
- name: Send coverage to CodeCov
29+
uses: codecov/codecov-action@v3
30+
with:
31+
fail_ci_if_error: true
32+
verbose: true

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
![CI status](https://github.com/opensource-nepal/go-nepali/actions/workflows/nepali-ci.yml/badge.svg?branch=main)
2-
31
## Nepali
2+
3+
[![CI status](https://github.com/opensource-nepal/go-nepali/actions/workflows/nepali-ci.yml/badge.svg?branch=main)](https://github.com/opensource-nepal/go-nepali/actions)
4+
[![codecov](https://codecov.io/gh/opensource-nepal/go-nepali/branch/main/graph/badge.svg?token=PTUHYWCJ4I)](https://codecov.io/gh/opensource-nepal/go-nepali)
5+
[![Release](https://img.shields.io/github/v/release/opensource-nepal/go-nepali?label=Latest)](https://github.com/opensource-nepal/go-nepali/releases)
6+
[![License](https://img.shields.io/github/license/opensource-nepal/go-nepali?label=License)](https://github.com/opensource-nepal/go-nepali/blob/main/LICENSE)
7+
8+
49
This is a `golang` implementation of the package from [opensource-nepal](https://github.com/opensource-nepal)'s `python` package [nepali](https://github.com/opensource-nepal/py-nepali).
510

611
We'll try to include all the features provided in the aforementioned package. We'll be releasing features in parts to support all or most features given by `go`'s `time` package.

codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This files contains codecov configurations.
2+
3+
# Disabling comments
4+
comment: false

0 commit comments

Comments
 (0)