-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (45 loc) · 1.47 KB
/
main.yaml
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
name: Flutter Analyze, Test & Build
on:
push:
branches:
- master
- dev
pull_request:
branches:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: 📚 Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: ☕ Set Up Java 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
flutter-version: "3.24.1"
channel: stable
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: 🤫 Set SSH Key
uses: webfactory/ssh-agent@fd34b8dee206fe74b288a5e61bc95fba2f1911eb
with:
ssh-private-key: ${{secrets.SSH_PRIVATE_KEY}}
- name: 📦 Install Dependencies
run: flutter pub get
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed .
- name: 🕵️ Analyze
run: flutter analyze --no-fatal-infos
- name: 🧪 Run Tests
run: flutter test
- name: Build Example app
working-directory: ./example
run: flutter build apk --target-platform android-arm,android-arm64,android-x64