File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ flutter_analyze :
11+ name : Flutter Analyze
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : subosito/flutter-action@v2
16+ with :
17+ flutter-version : ' 3.19.0'
18+ channel : ' stable'
19+ - run : flutter pub get
20+ - run : flutter analyze
21+ - run : dart format --set-exit-if-changed lib/
22+
23+ flutter_test :
24+ name : Flutter Tests
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : subosito/flutter-action@v2
29+ with :
30+ flutter-version : ' 3.19.0'
31+ channel : ' stable'
32+ - run : flutter pub get
33+ - run : flutter test
34+
35+ android_build :
36+ name : Android Build
37+ runs-on : ubuntu-latest
38+ steps :
39+ - uses : actions/checkout@v4
40+ - uses : subosito/flutter-action@v2
41+ with :
42+ flutter-version : ' 3.19.0'
43+ channel : ' stable'
44+ - run : flutter pub get
45+ - run : flutter build apk --debug
46+ - uses : actions/upload-artifact@v4
47+ with :
48+ name : android-apk
49+ path : build/app/outputs/flutter-apk/app-debug.apk
You can’t perform that action at this time.
0 commit comments