Another try at adding codecov

This commit is contained in:
Michael Steinert
2023-11-29 21:41:05 -06:00
parent fb46dfb9da
commit 004c7008f4
4 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +0,0 @@
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -19,4 +19,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Test
run: sudo go test -v ./...
run: sudo go test -v -cover -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
coverage.out

View File

@@ -1,4 +1,5 @@
[![GoDoc](https://godoc.org/github.com/msteinert/pam?status.svg)](http://godoc.org/github.com/msteinert/pam)
[![codecov](https://codecov.io/gh/msteinert/pam/graph/badge.svg?token=L1K3UTB065)](https://codecov.io/gh/msteinert/pam)
[![Go Report Card](https://goreportcard.com/badge/github.com/msteinert/pam)](https://goreportcard.com/report/github.com/msteinert/pam)
# Go PAM