-
Notifications
You must be signed in to change notification settings - Fork 272
51 lines (39 loc) · 1.06 KB
/
flutter-example.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
name: Build Flutter example
on:
push:
branches: [ master ]
paths-ignore: [ '**.md' ]
pull_request:
branches: [ master ]
paths-ignore: [ '**.md' ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/flutter/github_search
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/[email protected]
with:
channel: 'stable'
- name: Install melos
run: dart pub global activate melos
- name: Melos Boostrap
run: melos bootstrap
- name: Print Dart SDK version
run: dart --version
- name: Print Flutter SDK version
run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format lib --set-exit-if-changed
- name: Analyze
run: flutter analyze lib
- name: Build Debug APK
run: flutter build apk --debug --no-shrink