Skip to content

Commit 89f2a01

Browse files
committed
2 parents cc4f757 + a8a5314 commit 89f2a01

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/dart.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,18 @@ jobs:
3535
- name: Analyze project source
3636
run: dart analyze
3737

38-
# Your project will need to have tests in test/ and a dependency on
39-
# package:test for this step to succeed. Note that Flutter projects will
40-
# want to change this to 'flutter test'.
38+
# Run Dart tests and output them at directory `./coverage`:
4139
- name: Run tests
42-
run: dart test
40+
run: dart test --coverage=./coverage
41+
42+
# Activate package `coverage`
43+
- name: Activate package coverage
44+
run: dart pub global activate coverage
45+
46+
# Format collected coverage to LCOV
47+
- name: Format collected coverage to LCOV
48+
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --report-on=lib --lcov -o ./coverage/lcov.info -i ./coverage
49+
50+
# Run Codecov
51+
- name: Codecov
52+
uses: codecov/[email protected]

0 commit comments

Comments
 (0)