Skip to content

Commit

Permalink
Include test coverage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilthoniel committed Dec 2, 2023
1 parent 7c57a01 commit c785945
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
with:
go-version: '1.21'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...

- name: Coverage Check
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/Gilthoniel/gocron
threshold-total: 80

0 comments on commit c785945

Please sign in to comment.