-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.69 KB
/
suito_mobile.yaml
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
name: Suito Mobile CI
on:
pull_request:
types: [opened, synchronize]
paths:
- "mobile/**"
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create configuration files
run: |
echo "${{ secrets.ENV_DART }}" | base64 --decode > mobile/lib/env/env.g.dart
echo "${{ secrets.IOS_RUNNER_GOOGLESERVICE_INFO_PLIST }}" | base64 --decode > mobile/ios/Runner/GoogleService-Info.plist
echo "${{ secrets.IOS_FIREBASE_APP_ID_FILE_JSON }}" | base64 --decode > mobile/ios/firebase_app_id_file.json
echo "${{ secrets.MACOS_RUNNER_GOOGLESERVICE_INFO_PLIST }}" | base64 --decode > mobile/macos/Runner/GoogleService-Info.plist
echo "${{ secrets.MACOS_FIREBASE_APP_ID_FILE_JSON }}" | base64 --decode > mobile/macos/firebase_app_id_file.json
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: "12.x"
- name: Setup homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: install fvm
run: |
brew tap leoafarias/fvm
brew install fvm
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Set up cargo-make
uses: davidB/rust-cargo-make@v1
with:
version: "0.35.0"
- name: setup flutter
run: cd mobile && cargo make fvm-install
- name: Flutter pub get
run: cd mobile && cargo make install
- name: Lint
run: cd mobile && cargo make lint
- name: Test
run: cd mobile && cargo make ci-test