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 6c734aa commit 637f8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ 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_baseline
echo "$baseline_coverage" > .coverage
- 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)
baseline_coverage=$(cat .coverage)
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 637f8b8

Please sign in to comment.