Skip to content

Dart CI

Dart CI #137

Workflow file for this run

name: Dart CI
on:
# Run on PRs and pushes to the default branch.
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [stable]
steps:
- uses: actions/[email protected]
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze project source
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [stable, dev]
steps:
- uses: actions/[email protected]
- uses: dart-lang/[email protected]
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'