-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (56 loc) · 1.49 KB
/
main.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
name: FlutterFlow
on: push
env:
# Keep this in sync with the version used by FlutterFlow.
DART_VERSION: 3.5.2
FLUTTER_VERSION: 3.24.2
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ env.DART_VERSION }}
- name: Install dependencies
run: |
dart pub get --enforce-lockfile
- name: Analyze code
run: |
dart analyze
- name: Format code
run: |
dart format . --set-exit-if-changed
build_and_test:
runs-on: ${{ matrix.os }}
needs: check
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-24.04, windows-10, windows-11, macos-14]
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2
with:
channel: master
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Install dependencies
run: |
dart pub get --enforce-lockfile
- name: Build
run: |
dart compile exe bin/flutterflow_cli.dart
- name: Run
run: |
dart run bin/flutterflow_cli.dart -h
- name: Test
env:
FF_TESTER_TOKEN: ${{ secrets.FF_TESTER_TOKEN }}
run: |
dart test