Skip to content

Commit

Permalink
add support for coverage analysis in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nandiniiys authored Sep 23, 2024
1 parent 24c3179 commit b7ecdd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ jobs:

- name: Run Cucumber tests
run: bundle exec cucumber

- name: Check Code Coverage
run: |
value=$(jq -r '.result.line' coverage/.last_run.json);
if (( $(echo "$value < 90" | bc -l) )); then
echo "::warning::Coverage is less than 90: $value"
fi

0 comments on commit b7ecdd6

Please sign in to comment.