Skip to content

Commit

Permalink
chore(test): Add quality gate
Browse files Browse the repository at this point in the history
  • Loading branch information
rkettelerij committed Sep 13, 2024
1 parent 72c34ec commit 9212961
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
- name: Benchmark
run: go test -v ./... -bench=. -run=^# -benchmem -count=1

- name: Fail when coverage below threshold
uses: vladopajic/go-test-coverage@v2
with:
profile: cover.out
local-prefix: github.com/PDOK/gokoala
threshold-total: 80 # 80% overall coverage is the minimum

- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
Expand Down

0 comments on commit 9212961

Please sign in to comment.