-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (42 loc) · 939 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
43
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.17.0
with:
channel: 'stable'
flutter-version: '2.2.2'
- 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@v4
with:
name: APKs
path: mobile/build/app/outputs/flutter-apk/app-*.apk
retention-days: 1