Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Apr 2, 2024
1 parent 637f8b8 commit 3699350
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ jobs:
run: |
git fetch origin main:main
baseline_coverage=$(git show main:.coverage | coverage report -m | sed -n '/TOTAL/ s/.*\s\([0-9.]*%\).*/\1/p' | sed 's/%//')
echo "$baseline_coverage" > .coverage
echo "Baseline Coverage: $baseline_coverage"
echo "$baseline_coverage" > .coverage_baseline
- name: Compare coverage with baseline
run: |
current_coverage=$(coverage report -m | sed -n '/TOTAL/ s/.*\s\([0-9.]*%\).*/\1/p' | sed 's/%//')
baseline_coverage=$(cat .coverage)
baseline_coverage=$(cat .coverage_baseline)
echo "FOOFOOFOO from $baseline_coverage% to $current_coverage%"
if (( current_coverage < baseline_coverage )); then
echo "Coverage decreased from $baseline_coverage% to $current_coverage%"
Expand Down

0 comments on commit 3699350

Please sign in to comment.