Skip to content

Commit dffdc7c

Browse files
authored
Move to GitHub actions (#247)
1 parent 527da57 commit dffdc7c

File tree

3 files changed

+40
-16
lines changed

3 files changed

+40
-16
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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'

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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)
22
[![Coverage Status](https://coveralls.io/repos/google/vector_math.dart/badge.svg?branch=master)](https://coveralls.io/r/google/vector_math.dart?branch=master)
33

44
## Introduction

0 commit comments

Comments
 (0)