-
-
Notifications
You must be signed in to change notification settings - Fork 31
65 lines (56 loc) · 1.57 KB
/
flutter.yml
File metadata and controls
65 lines (56 loc) · 1.57 KB
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
65
name: Flutter
on:
push:
paths-ignore:
- "**.md"
- "docs/**"
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ vars.FLUTTER_VERSION }}
cache: true
- name: Install dependencies
run: flutter pub get
- name: Format
run: find . -name '*.dart' -not -path './lib/src/generated/i18n/*' | xargs dart format --output=none --set-exit-if-changed
- name: Analyze
run: flutter analyze
- name: Test
run: flutter test
build-android:
uses: ./.github/workflows/android-build.yml
secrets: inherit
with:
flutter_version: ${{ vars.FLUTTER_VERSION }}
workflow_profile: ci
build_mode: ci_full_dev
artifact_name: Apk
enable_build_cache: true
enable_gradle_cache: true
signing_required: false
include_metadata_defines: true
include_dev_define: true
build-windows:
uses: ./.github/workflows/windows-build.yml
with:
flutter_version: ${{ vars.FLUTTER_VERSION }}
workflow_profile: ci
artifact_name: Windows
enable_build_cache: true
include_metadata_defines: true
include_dev_define: true
package_release_artifacts: false
build-linux:
uses: ./.github/workflows/linux-build.yml
with:
flutter_version: ${{ vars.FLUTTER_VERSION }}
workflow_profile: ci
artifact_name: Linux
include_metadata_defines: true
include_dev_define: true