Skip to content

Commit b3f0344

Browse files
committed
Add CI pipeline for automated builds
1 parent 6e595a8 commit b3f0344

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)