Skip to content

Commit 8696858

Browse files
committed
2 parents c721b26 + 6fefd41 commit 8696858

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/flutter.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Flutter
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-java@v1
16+
with:
17+
java-version: '12.x'
18+
19+
- uses: subosito/flutter-action@v1
20+
with:
21+
channel: 'beta'
22+
23+
- name: Print Dart SDK version
24+
run: dart --version
25+
26+
- name: Print Flutter SDK version
27+
run: flutter --version
28+
29+
- name: Install dependencies
30+
run: flutter pub get
31+
32+
- name: Format code
33+
run: flutter format lib --set-exit-if-changed
34+
35+
- name: Analyze
36+
run: flutter analyze lib
37+
38+
- name: Gen code
39+
run: flutter packages pub run build_runner build --delete-conflicting-outputs
40+
41+
- name: Build APK
42+
run: flutter build apk --no-shrink
43+
44+
- name: Upload APK
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: app
48+
path: build/app/outputs/apk/release/app-release.apk
49+

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dependencies:
3131
rxdart_ext: ^0.0.1-nullsafety.7
3232

3333
dependency_overrides:
34+
analyzer: ^0.41.1
3435
http_parser: ^4.0.0
3536
rxdart: ^0.26.0-nullsafety.1
3637
shared_preferences:

0 commit comments

Comments
 (0)