-
-
Notifications
You must be signed in to change notification settings - Fork 188
70 lines (58 loc) · 1.65 KB
/
supabase_flutter_ci.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
name: supabase_flutter
on:
push:
branches:
- main
paths:
- 'packages/supabase_flutter/**'
- '.github/workflows/supabase_flutter.yaml'
- 'packages/functions_client/**'
- 'packages/gotrue/**'
- 'packages/postgrest/**'
- 'packages/realtime_client/**'
- 'packages/storage_client/**'
- 'packages/supabase/**'
pull_request:
paths:
- 'packages/supabase_flutter/**'
- '.github/workflows/supabase_flutter.yaml'
- 'packages/functions_client/**'
- 'packages/gotrue/**'
- 'packages/postgrest/**'
- 'packages/realtime_client/**'
- 'packages/storage_client/**'
- 'packages/supabase/**'
jobs:
test:
name: Test Flutter v${{ matrix.flutter-version }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
flutter-version: ['3.0.0', '3.x']
defaults:
run:
working-directory: packages/supabase_flutter
runs-on: ${{ matrix.os }}
steps:
- name: Checks-out repo
uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ matrix.flutter-version }}
channel: 'stable'
- name: Bootstrap workspace
run: |
cd ../../
dart pub global activate melos
melos bootstrap
- name: flutterfmt
if: ${{ matrix.sdk == '3.x'}}
run: dart format lib test -l 80 --set-exit-if-changed
- name: analyzer
run: flutter analyze --fatal-warnings --fatal-infos .
- name: Run tests
run: flutter test