From 9212961ae6cf081e57338a1865be729375922881 Mon Sep 17 00:00:00 2001 From: Richard Kettelerij Date: Fri, 13 Sep 2024 09:44:20 +0200 Subject: [PATCH] chore(test): Add quality gate --- .github/workflows/test-go.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 10a563ca..3f200f38 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -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: