-
Notifications
You must be signed in to change notification settings - Fork 11
73 lines (64 loc) · 1.55 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Flutter
on:
push:
branches: [main, v*]
pull_request:
branches: [main, v*]
schedule:
# https://crontab.guru/#40_10_*_*_*
- cron: '40 10 * * *'
workflow_dispatch:
jobs:
test-stable:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version:
- latest
- 3.3.0
- 3.0.0
- 2.10.5
steps:
- uses: actions/checkout@v3
- uses: ./
with:
channel: stable
version: ${{ matrix.version }}
- name: Dart version
run: dart --version
- name: Flutter version
run: flutter --version
- name: Flutter doctor
run: flutter doctor
- name: Run hello world
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart
test-beta:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version:
- latest
- 3.3.0-0.0.pre
- 3.1.0
steps:
- uses: actions/checkout@v3
- uses: ./
with:
channel: beta
version: ${{ matrix.version }}
- name: Dart version
run: dart --version
- name: Flutter version
run: flutter --version
- name: Flutter doctor
run: flutter doctor
- name: Run hello world
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart