This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
Update README.md #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | |
- 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 |