File tree 2 files changed +36
-0
lines changed
2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 60
60
- name : Run VM tests
61
61
run : dart test --platform vm
62
62
if : always() && steps.install.outcome == 'success'
63
+
64
+ coverage :
65
+ needs : test
66
+ runs-on : ${{ matrix.os }}
67
+ strategy :
68
+ fail-fast : false
69
+ matrix :
70
+ os : [ubuntu-latest]
71
+ sdk : [2.12.0]
72
+ steps :
73
+ - uses : actions/checkout@v2
74
+ -
uses :
dart-lang/[email protected]
75
+ with :
76
+ sdk : ${{ matrix.sdk }}
77
+ - id : install
78
+ name : Install dependencies
79
+ run : dart pub get
80
+ - name : Generate Coverate
81
+ run : ./scripts/gen_coverage.sh
82
+ if : always() && steps.install.outcome == 'success'
83
+ - name : Archive code coverage results
84
+ uses : actions/upload-artifact@v2
85
+ with :
86
+ name : code-coverage-report
87
+ path : coverage_html
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # This is supposed to run on the CI
3
+
4
+ set -eux
5
+
6
+ dart pub global activate coverage
7
+ dart test --coverage=" coverage"
8
+ format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
9
+
10
+ sudo apt-get install -y lcov
11
+ genhtml coverage.lcov -o coverage_html
You can’t perform that action at this time.
0 commit comments