From 052c5938fabe452a0ebde3633e6811b2aa927220 Mon Sep 17 00:00:00 2001 From: Mark Cohen Date: Thu, 8 Dec 2022 13:40:00 -0500 Subject: [PATCH] Unit Test Coverage Threshold (#101) * Setting unit test coverage target to 80% with a 2% threshold. Builds will fail if coverage hits 78%. * Adding pull request stats action to test. Signed-off-by: Mark Cohen Co-authored-by: Mark Cohen --- .github/.codecov.yml | 5 +++-- .github/workflows/stats.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/.codecov.yml b/.github/.codecov.yml index a69722d..daa351c 100644 --- a/.github/.codecov.yml +++ b/.github/.codecov.yml @@ -3,5 +3,6 @@ coverage: status: project: default: - # https://docs.codecov.com/docs/commit-status#target - target: auto # coverage must be equal or above the previous commit \ No newline at end of file + target: 80%% + threshold: 2% + diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index 1ce22c9..92e0cd8 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -3,10 +3,11 @@ name: Pull Request Stats on: pull_request: types: [opened] + workflow_dispatch: jobs: stats: runs-on: ubuntu-latest steps: - name: Run pull request stats - uses: flowwer-dev/pull-request-stats@master \ No newline at end of file + uses: flowwer-dev/pull-request-stats@master