Skip to content

Commit

Permalink
add coverage test in .yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdinovi committed Dec 21, 2023
1 parent b0598e1 commit 92d33c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install gcov
run: |
Expand All @@ -33,3 +33,13 @@ jobs:
fi
echo "gcov is installed."
- name: Generate Coverage
run: |
COVERAGE=$(make coverage | grep 'TOTAL COVERAGE' | grep -Eo '[0-9]+')
if [ "$COVERAGE" -gt 89 ]; then
echo "success"
else
echo "failure"
fi

0 comments on commit 92d33c8

Please sign in to comment.