-
-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (49 loc) · 1.44 KB
/
postsubmit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Client Post-Submit Tests
on:
push:
branches:
- "develop"
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./client
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
# Setup flutter
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
cache-key: flutter3.0.1 # change this to force refresh cache
- run: flutter --version
# Get dependencies.
- name: Get dependencies
run: flutter pub get .
# Check for formatting issues
- name: Check for formatting issues (run "flutter format . ")
run: flutter format --set-exit-if-changed .
# analyze Dart for errors
- name: Analyze code
run: flutter analyze --fatal-infos --fatal-warnings .
# Run tests
- name: Run Tests
run: flutter test .
# Build apk.
- name: Build APK
run: flutter build apk --debug
# Upload generated apk to the artifacts.
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-debug.apk