Browse Source

only report on lib and test dirs.

pull/3/head
Herbert Poul 4 years ago
parent
commit
53ebc75b48
  1. 1
      .github/workflows/dart.yml
  2. 2
      _tool/test-coverage.sh

1
.github/workflows/dart.yml

@ -40,3 +40,4 @@ jobs:
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info path-to-lcov: coverage/lcov.info
base-path: .

2
_tool/test-coverage.sh

@ -25,7 +25,7 @@ echo "fail=$fail"
# shellcheck disable=SC2046 # shellcheck disable=SC2046
jq -s '{coverage: [.[].coverage] | flatten}' $(find coverage -name '*.json' | xargs) > coverage/merged_json.cov jq -s '{coverage: [.[].coverage] | flatten}' $(find coverage -name '*.json' | xargs) > coverage/merged_json.cov
pub global run coverage:format_coverage --packages=.packages -i coverage/merged_json.cov -l > coverage/lcov.info pub global run coverage:format_coverage --packages=.packages -i coverage/merged_json.cov -l --report-on lib --report-on test > coverage/lcov.info
bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info

Loading…
Cancel
Save