File tree Expand file tree Collapse file tree 3 files changed +40
-16
lines changed Expand file tree Collapse file tree 3 files changed +40
-16
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ sdk : [2.12.0, dev]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : dart-lang/setup-dart@v1.0
20
+
21
+ - run : dart pub get
22
+ id : install
23
+ - run : dart format --output=none --set-exit-if-changed .
24
+ if : always() && steps.install.outcome == 'success'
25
+ - run : dart analyze --fatal-infos
26
+ if : always() && steps.install.outcome == 'success'
27
+ - run : dart test
28
+ if : matrix.sdk != 'dev' && steps.install.outcome == 'success'
29
+
30
+ - run : dart test --coverage coverage
31
+ if : matrix.sdk == 'dev' && steps.install.outcome == 'success'
32
+ - run : pub global activate coverage
33
+ if : matrix.sdk == 'dev'
34
+ - run : pub global run coverage:format_coverage --packages=.packages -i coverage --report-on=lib --lcov > coverage/lcov.info
35
+ if : matrix.sdk == 'dev'
36
+ - uses : coverallsapp/github-action@master
37
+ with :
38
+ github-token : ${{ secrets.GITHUB_TOKEN }}
39
+ if : matrix.sdk == 'dev'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- [ ![ Build Status ] ( https://travis-ci.org /google/vector_math.dart.svg?branch=master )] ( https://travis-ci.org /google/vector_math.dart )
1
+ [ ![ CI ] ( https://github.com /google/vector_math.dart/workflows/ci/badge .svg?branch=master )] ( https://github.com /google/vector_math.dart/actions?query=workflow%3Aci+branch%3Amaster )
2
2
[ ![ Coverage Status] ( https://coveralls.io/repos/google/vector_math.dart/badge.svg?branch=master )] ( https://coveralls.io/r/google/vector_math.dart?branch=master )
3
3
4
4
## Introduction
You can’t perform that action at this time.
0 commit comments