Skip to content

Commit

Permalink
Merge pull request #55 from cashapp/add-code-coverage
Browse files Browse the repository at this point in the history
Add code coverage reports using codecov.io
  • Loading branch information
yoavamit authored Aug 16, 2024
2 parents 0c9bbeb + 00f7e5d commit 51d77d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ jobs:
# test it
make pivit GOARCH=arm64
fi
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ release: pivit
test: pivit
(\
set -e ;\
go test ./pkg/... ;\
go test -coverprofile=cover.out ./pkg/... ;\
file pivit ;\
./pivit --help ;\
)
Expand All @@ -46,4 +46,4 @@ test: pivit
#
.PHONY: clean
clean:
rm -rf ./pivit*
rm -rf ./pivit* ./cover.out
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![codecov](https://codecov.io/gh/cashapp/pivit/graph/badge.svg?token=NXDYOELPGG)](https://codecov.io/gh/cashapp/pivit)

# Pivit
Pivit is a command line tool for managing x509 certificates stored on smart cards with PIV applet support (Yubikey),
and using those certificates to sign and verify data.
Expand Down

0 comments on commit 51d77d0

Please sign in to comment.