From f5c4f700f58fa83fbdfec6cf716f2212fa56b481 Mon Sep 17 00:00:00 2001 From: Stevertus Date: Mon, 27 Nov 2023 23:09:45 +0100 Subject: [PATCH] update coverage command --- .github/workflows/dart.yml | 6 +++--- .gitignore | 3 ++- .pubignore | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 69334b9..f0f868d 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -25,11 +25,11 @@ jobs: - name: Lint Code run: dart analyze lib/ - name: Run tests - run: dart pub run test --coverage="coverage" + run: dart run test --coverage="coverage" - name: Convert coverage to ICOV - run: dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib + run: dart run coverage:format_coverage --packages=.dart_tool/package_config.json --lcov -i coverage/coverage.json -o coverage/coverage.lcov - name: Upload coverage to Codecov uses: codecov/codecov-action@v1.0.2 with: token: ${{secrets.CODECOV_TOKEN}} - file: coverage.lcov + file: coverage/coverage.lcov diff --git a/.gitignore b/.gitignore index b6c7afb..bcf0eaa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ .dart_tool/ .packages pubspec.lock -generators/ \ No newline at end of file +generators/ +coverage/ \ No newline at end of file diff --git a/.pubignore b/.pubignore index 8c6e596..a631ed5 100644 --- a/.pubignore +++ b/.pubignore @@ -4,4 +4,5 @@ .gitignore web_example pubspec.lock -generators/ \ No newline at end of file +generators/ +coverage/ \ No newline at end of file