mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-11 16:12:20 +00:00
Fix coverage calculation.
This commit is contained in:
parent
938b933b57
commit
b9d3966366
1 changed files with 2 additions and 2 deletions
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
|
|
@ -71,8 +71,8 @@ jobs:
|
|||
run: |
|
||||
# Stack is required because cabal doesn't build docs for dependencies.
|
||||
# Without those, coverage will not reach 100%
|
||||
stack build
|
||||
stack haddock 2>&1 | grep " in " | sort -hr > hpc/haddock.txt
|
||||
stack build --haddock --only-dependencies
|
||||
stack haddock 2>&1 | grep ") in " | sort -hr > hpc/haddock.txt
|
||||
COVERAGE=$(awk '{good += $3; total += $5} END {printf "%.0f", good/total*100}' hpc/haddock.txt)
|
||||
echo "\
|
||||
{ \"schemaVersion\": 1, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue