Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
Signed-off-by: Chase Engelbrecht <[email protected]>
  • Loading branch information
engechas committed Apr 11, 2024
1 parent 41d5a2e commit c737129
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
codecov:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
range: "75...100"
status:
project:
default:
target: 75% # the required coverage value
threshold: 1% # the leniency in hitting the target
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
name: logs-ubuntu
path: build/testclusters/integTest-*/logs/*

# This step uses the codecov-action Github action: https://github.com/codecov/codecov-action
- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -128,4 +134,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: security-analytics-plugin-${{ matrix.os }}
path: security-analytics-artifacts
path: security-analytics-artifacts

0 comments on commit c737129

Please sign in to comment.