File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build mobile apps & check tests
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ jobs :
10+ build-android :
11+ name : Build android
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+ - uses : actions/setup-java@v2
17+ with :
18+ distribution : ' zulu'
19+ java-version : ' 11'
20+ - uses : subosito/flutter-action@v2
21+ with :
22+ flutter-version : ' 3.16.9'
23+ - name : Install dependencies
24+ run : flutter pub get
25+ - name : Generate l10n
26+ run : flutter gen-l10n
27+ - name : Build apk
28+ run : flutter build apk
29+ - name : Build appbundle
30+ run : flutter build appbundle
31+
32+ build-ios :
33+ name : Build ios
34+ runs-on : macos-latest
35+
36+ steps :
37+ - uses : actions/checkout@v3
38+ - uses : subosito/flutter-action@v2
39+ with :
40+ channel : ' stable'
41+ architecture : x64
42+ - name : Install dependencies
43+ run : flutter pub get
44+ - name : Generate l10n
45+ run : flutter gen-l10n
46+ - name : Build ios
47+ run : flutter build ios --release --no-codesign
48+
49+ check-tests :
50+ name : Check Tests
51+ runs-on : ubuntu-latest
52+
53+ steps :
54+ - uses : actions/checkout@v3
55+ - uses : subosito/flutter-action@v2
56+ with :
57+ flutter-version : ' 3.16.9'
58+ channel : ' stable'
59+ - name : Flutter doctor
60+ run : flutter doctor
61+ - name : Get dependencies
62+ run : flutter pub get
63+ - name : Run l10n generation
64+ run : flutter gen-l10n
65+ - name : Run tests
66+ run : flutter test
67+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments