Skip to content

Commit

Permalink
DEVHAS-237: Fail Pr codecov check when coverage drop by 2% the covera…
Browse files Browse the repository at this point in the history
…ge (#405)

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
  • Loading branch information
flacatus authored Nov 21, 2023
1 parent f2e10e6 commit 72c41a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Run Go Tests
Expand All @@ -26,4 +26,4 @@ jobs:
go mod download
make test
- name: Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v3
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,13 @@ ignore:
- "pkg/github/mock.go" # mock file for testing
- "pkg/github/token_mock.go" # mock file for testing
- "contracts/" # contract testing files
coverage:
status:
# Allows coverage to drop by a 2% when compared against the base commit.
project:
default:
target: auto
threshold: 2%
patch:
default:
informational: true

0 comments on commit 72c41a8

Please sign in to comment.