diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..e711a04df --- /dev/null +++ b/.codecov.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a4d0ca7d..63c36b66d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 \ No newline at end of file