blob: 09946531112635c23b7bde44273ad217cfed9e52 [file] [log] [blame]
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.0
with:
sdk: dev
- run: pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos
test:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [2.12.0, stable, dev]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.0
with:
sdk: ${{ matrix.sdk }}
- run: pub get
- run: pub run test -p vm,chrome