-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (41 loc) · 919 Bytes
/
mobile.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
on:
push:
branches:
- master
pull_request:
branches: [ master ]
name: Mobile Build
jobs:
build:
name: Build and test APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- uses: subosito/flutter-action@v2.12.0
with:
channel: 'beta'
flutter-version: '2.2.0-10.1.pre'
- name: Get Flutter packages
run: |
cd mobile
flutter pub get
- name: Run Flutter tests
run: |
cd mobile
flutter test
- name: Build APK
run: |
cd mobile
flutter build apk --debug
# - name: Archive artifacts
# uses: actions/upload-artifact@v2
# with:
# name: APKs
# path: mobile/build/app/outputs/apk/debug/app-*.apk