File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 47
47
matrix :
48
48
# Add macos-latest and/or windows-latest if relevant for this package.
49
49
os : [ubuntu-latest]
50
- sdk : [2.12.0, dev]
50
+ sdk : [2.12.0, stable, dev]
51
+ platform : [vm, chrome]
51
52
steps :
52
53
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
53
54
- uses : dart-lang/setup-dart@a57a6c04cf7d4840e88432aad6281d1e125f0d46
56
57
- id : install
57
58
name : Install dependencies
58
59
run : dart pub get
59
- - name : Run VM tests
60
- run : dart test --platform vm
61
- if : always() && steps.install.outcome == 'success'
62
- - name : Run Chrome tests
63
- run : dart test --platform chrome
60
+ - name : Run tests on ${{ matrix.platform }}
61
+ run : dart test --platform ${{ matrix.platform }} --coverage=./coverage
64
62
if : always() && steps.install.outcome == 'success'
63
+ # We don't collect code coverage from 2.12.0, because it doesn't work
64
+ - name : Convert coverage to lcov
65
+ run : dart run coverage:format_coverage -i ./coverage -o ./coverage/lcov.info --lcov --report-on lib/
66
+ if : always() && steps.install.outcome == 'success' && matrix.sdk != '2.12.0'
67
+ - uses : coverallsapp/github-action@v1
68
+ if : always() && steps.install.outcome == 'success' && matrix.sdk != '2.12.0'
69
+ with :
70
+ flag-name : os:${{ matrix.os }}/dart:${{ matrix.sdk }}/platform:${{ matrix.platform }}
71
+ parallel : true
72
+
73
+ report-coverage :
74
+ needs : test
75
+ if : ${{ always() }}
76
+ runs-on : ubuntu-latest
77
+ steps :
78
+ - uses : coverallsapp/github-action@v1
79
+ with :
80
+ parallel-finished : true
Original file line number Diff line number Diff line change 1
1
[ ![ Dart CI] ( https://github.com/dart-lang/yaml_edit/actions/workflows/test-package.yml/badge.svg )] ( https://github.com/dart-lang/yaml_edit/actions/workflows/test-package.yml )
2
2
[ ![ pub package] ( https://img.shields.io/pub/v/yaml_edit.svg )] ( https://pub.dev/packages/yaml_edit )
3
3
[ ![ package publisher] ( https://img.shields.io/pub/publisher/yaml_edit.svg )] ( https://pub.dev/packages/yaml_edit/publisher )
4
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/dart-lang/yaml_edit/badge.svg )] ( https://coveralls.io/github/dart-lang/yaml_edit )
4
5
5
6
A library for [ YAML] ( https://yaml.org ) manipulation while preserving comments.
6
7
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ dev_dependencies:
17
17
lints : ^1.0.1
18
18
path : ^1.8.0
19
19
test : ^1.17.12
20
+ coverage : # we only need format_coverage, don't care what version
You can’t perform that action at this time.
0 commit comments