Skip to content

Commit

Permalink
update coverage command
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevertus committed Nov 27, 2023
1 parent b11d281 commit f5c4f70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage.lcov
file: coverage/coverage.lcov
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
.dart_tool/
.packages
pubspec.lock
generators/
generators/
coverage/
3 changes: 2 additions & 1 deletion .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.gitignore
web_example
pubspec.lock
generators/
generators/
coverage/

0 comments on commit f5c4f70

Please sign in to comment.