-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.34 KB
/
build.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
56
57
58
59
60
61
62
63
name: Dart CI
on: [ push, pull_request ]
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
version: [ "2.18", "2.19", "3.0", "beta" ]
container:
image: dart:${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart pub run test
test-windows:
timeout-minutes: 5
runs-on: windows-latest
steps:
- name: Install dart
run: |
choco install dart-sdk
- uses: actions/checkout@v2
- name: Install dependencies
run: C:\tools\dart-sdk\bin\dart.exe pub get
- name: Run tests
run: C:\tools\dart-sdk\bin\dart.exe pub run test
test-macos:
timeout-minutes: 5
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Tap Google's Dart formula repository
run: brew tap dart-lang/dart
- name: Install the Dart formula
run: brew install dart
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart pub run test
format:
timeout-minutes: 5
runs-on: ubuntu-latest
container:
image: dart:stable
steps:
- uses: actions/checkout@v2
- name: Format
run: dart format --set-exit-if-changed --fix .