Another try at adding codecov
This commit is contained in:
4
.github/workflows/codecov.yaml
vendored
4
.github/workflows/codecov.yaml
vendored
@@ -1,4 +0,0 @@
|
|||||||
- name: Upload coverage reports to Codecov
|
|
||||||
uses: codecov/codecov-action@v3
|
|
||||||
env:
|
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@@ -19,4 +19,8 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Test
|
- 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
coverage.out
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
[](http://godoc.org/github.com/msteinert/pam)
|
[](http://godoc.org/github.com/msteinert/pam)
|
||||||
|
[](https://codecov.io/gh/msteinert/pam)
|
||||||
[](https://goreportcard.com/report/github.com/msteinert/pam)
|
[](https://goreportcard.com/report/github.com/msteinert/pam)
|
||||||
|
|
||||||
# Go PAM
|
# Go PAM
|
||||||
|
|||||||
Reference in New Issue
Block a user