-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (43 loc) · 1.13 KB
/
ci.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
name: CI
on:
push:
branches:
- '**'
tags-ignore:
- 'v*'
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Parse FVM config
id: fvm-config-action
uses: kuhnroyal/[email protected]
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: any
cache: true
- name: Setup Melos
uses: bluefireteam/melos-action@v3
- name: Run static analysis checks
run: melos lint
- name: Build Android APK (profile)
run: flutter build apk --profile
- name: Upload APK (profile) artifact
uses: actions/upload-artifact@v3
with:
name: app-profile.apk
path: build/app/outputs/apk/profile/app-profile.apk