-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (70 loc) · 2.06 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Dart CI
on: [ push, pull_request ]
jobs:
correctness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: dev
- name: Install dependencies
run: dart pub upgrade
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze --fatal-infos
test-os:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
sdk: [ stable, beta, dev ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub upgrade
- name: Run Tests
run: dart test
test-versions:
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