Skip to content

Commit

Permalink
Chore: added code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
pilinux committed Jan 2, 2023
1 parent 959f196 commit ecef20b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ jobs:
STRIPE_WH: ${{ secrets.STRIPE_WH }}
CURRENCY: ${{ secrets.CURRENCY }}
DESTINATION: ${{ secrets.DESTINATION }}
run: go test -v -cover ./...
run: go test -v -cover -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.env
coverage.txt
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
![Go][02]
![Linter][03]
[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)][04]
[![Codecov][05]][06]
[![Go Reference][07]][08]

Made stripe integration easy based on the official
[Stripe Go](https://github.com/stripe/stripe-go/) client library.
Expand Down Expand Up @@ -55,3 +57,7 @@ Please check the test files.
[02]: https://github.com/pilinux/stripego/actions/workflows/go.yml/badge.svg
[03]: https://github.com/pilinux/stripego/actions/workflows/golangci-lint.yml/badge.svg
[04]: LICENSE
[05]: https://codecov.io/gh/pilinux/stripego/branch/main/graph/badge.svg?token=83H0G5TRH7
[06]: https://codecov.io/gh/pilinux/stripego
[07]: https://pkg.go.dev/badge/github.com/pilinux/stripego
[08]: https://pkg.go.dev/github.com/pilinux/stripego

0 comments on commit ecef20b

Please sign in to comment.