Skip to content

Commit c36fd6c

Browse files
refactor ci (#42)
1 parent af4b97a commit c36fd6c

4 files changed

Lines changed: 67 additions & 80 deletions

File tree

.github/workflows/android.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/ci.yml

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

.github/workflows/flutter_test.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/ios.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)