-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (38 loc) · 1.32 KB
/
analyze.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
name: Dart Format & Analyze
on: push
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: subosito/[email protected]
name: Set up Flutter SDK
with:
channel: 'stable'
cache: true
- name: Retrieve the secret and decode it to file
env:
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
FIREBASE_OPTIONS_BASE64: ${{ secrets.FIREBASE_OPTIONS_BASE64 }}
INFO_PLIST_BASE64: ${{ secrets.INFO_PLIST_BASE64 }}
CONFIG_DART_BASE64: ${{ secrets.CONFIG_DART_BASE64 }}
run: |
cd app
echo $FIREBASE_OPTIONS_BASE64 | base64 -di > lib/firebase_options.dart
echo $INFO_PLIST_BASE64 | base64 -di > ios/Runner/Info.plist
cd ../data
echo $CONFIG_DART_BASE64 | base64 -di > lib/config.dart
cd ..
- name: Install dependencies
run: |
cd data && flutter clean && flutter pub get
cd ../style && flutter clean && flutter pub get
cd ../app && flutter clean && flutter pub get
cd ..
- name: Lint test
run: |
cd data && flutter analyze --fatal-infos
cd ../style && flutter analyze --fatal-infos
cd ../app && flutter analyze --fatal-infos
cd ..