-
-
Notifications
You must be signed in to change notification settings - Fork 80
64 lines (52 loc) · 1.51 KB
/
flutter.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
62
63
64
name: flutter
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }} using ${{ matrix.channel }} channel
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
channel: [stable, beta]
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Setup Java"
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: "gradle"
- name: "Setup Flutter"
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
cache: true
- run: dart --version
- run: flutter --version
- name: "Execute `pub get`"
run: flutter pub get
- name: "Show `doctor` output"
run: flutter doctor -v
- name: "Check code formatting issues"
run: dart format --set-exit-if-changed .
- name: "Show `analyze` output"
run: flutter analyze .
- name: "Run tests"
run: flutter test -r expanded
- name: "Build AppBundle"
run: flutter build appbundle
working-directory: ./example
continue-on-error: true
- name: "Build iOS"
if: ${{ startsWith(matrix.os, 'macos') }}
run: flutter build ios --release --no-codesign
working-directory: ./example
continue-on-error: true