-
Notifications
You must be signed in to change notification settings - Fork 551
55 lines (45 loc) · 1.46 KB
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 }}