mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Compute doc coverage with stack rather than cabal.
This commit is contained in:
parent
a5dc6b0fc8
commit
938b933b57
1 changed files with 4 additions and 1 deletions
5
.github/workflows/gh-pages.yml
vendored
5
.github/workflows/gh-pages.yml
vendored
|
|
@ -69,7 +69,10 @@ jobs:
|
|||
|
||||
- name: Haddock Badge
|
||||
run: |
|
||||
cabal v2-haddock --enable-coverage | grep " in " | sort -hr > hpc/haddock.txt
|
||||
# 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
|
||||
COVERAGE=$(awk '{good += $3; total += $5} END {printf "%.0f", good/total*100}' hpc/haddock.txt)
|
||||
echo "\
|
||||
{ \"schemaVersion\": 1, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue