Skip to content

Commit

Permalink
Add code cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster authored Mar 26, 2024
1 parent 012ee9a commit b661a2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Test/Lint/Fmt/Vet

on:
pull_request:

Expand All @@ -15,7 +16,13 @@ jobs:
run: go build -o /dev/null ./...

- name: Test
run: go test ./...
run: go test ./... -coverprofile=coverage.txt -covermode=atomic

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Starttoaster/go-proxmox

- name: Check gofmt changes
run: |
Expand Down

0 comments on commit b661a2f

Please sign in to comment.