-
Notifications
You must be signed in to change notification settings - Fork 339
59 lines (49 loc) · 1.41 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
name: "Build"
on:
pull_request:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Java
uses: actions/setup-java@v3.12.0
with:
distribution: 'oracle'
java-version: '19.0.2'
- name: Set Up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.3'
channel: 'stable'
- name: Set up debug keystore
run: |
rm -f ~/.android/debug.keystore
keytool -genkeypair \
-alias androiddebugkey \
-keypass android \
-keystore ~/.android/debug.keystore \
-storepass android \
-dname 'CN=Android Debug,O=Android,C=US' \
-keyalg 'RSA' \
-keysize 2048 \
-validity 10000
- name: Quality checks monorepo
run: |
./bin/quality_checks.sh
- name: Android native tests
run: |
#!/bin/bash -ex
cd example/android && ls && ./gradlew detekt && ./gradlew testDebugUnitTest
- name: Build android app
run: |
cd example && flutter build apk --debug
- name: Build iOS app
run: |
find . -name "Podfile" -execdir pod install \;
cd example && flutter build ios --debug --no-codesign