Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Dart

Dart #266

Workflow file for this run

name: Dart
on:
schedule:
# “At 00:00 (UTC) on Sunday.”
- cron: '0 0 * * 0'
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# TODO(devoncarew): Re-enable; there are currently 9 failing tests on
# Windows.
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
sdk: [2.18.0, stable, dev]
name: build on ${{ matrix.os }} for ${{ matrix.sdk }}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
with:
sdk: ${{ matrix.sdk }}
- name: dart pub get
run: dart pub get
- name: dart format
run: dart format --output=none --set-exit-if-changed bin/ lib/ test/
- name: dart analyze
run: dart analyze --fatal-infos
- name: dart test
run: dart test
# Ensure the example code is up-to-date with the generator.
- name: validate example/
run: |
(cd example; make)
git diff --exit-code example