From 53ebc75b4836d4b7d4b97a2b63c930662ad63491 Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Wed, 2 Sep 2020 14:21:54 +0200 Subject: [PATCH] only report on lib and test dirs. --- .github/workflows/dart.yml | 1 + _tool/test-coverage.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 84342b3..0c40fc0 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -40,3 +40,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage/lcov.info + base-path: . diff --git a/_tool/test-coverage.sh b/_tool/test-coverage.sh index 59c7319..1f659f3 100755 --- a/_tool/test-coverage.sh +++ b/_tool/test-coverage.sh @@ -25,7 +25,7 @@ echo "fail=$fail" # shellcheck disable=SC2046 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