Dart #1900
Workflow file for this run
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: | |
# Run CI on pushes to the master branch, and on PRs against master. | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # Every day at midnight | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- sdk: beta | |
# Allow skipping until we support Dart 3: | |
# https://github.com/dart-lang/dart-pad/issues/2467 | |
experimental: true | |
- sdk: stable | |
experimental: false | |
steps: | |
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab | |
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f | |
with: | |
sdk: ${{ matrix.sdk }} | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c | |
- name: Print Dart SDK version | |
run: dart --version | |
- name: Install apt dependencies | |
run: sudo apt-get install -y protobuf-compiler | |
- name: Install dart dependencies | |
run: dart pub get | |
- name: Verify formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Analyze project source | |
run: dart analyze --fatal-infos | |
- name: Run buildbot | |
run: | | |
export PATH=$PATH:$HOME/.pub-cache/bin | |
dart pub global activate protoc_plugin | |
dart run tool/grind.dart buildbot | |
continue-on-error: ${{ matrix.experimental }} |