-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.51 KB
/
build.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
name: Build 🏗️
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Flutter
uses: ./.github/actions/setup-flutter
- name: Check format
run: melos fmt:dry
- name: Analyze
run: melos lint
test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Flutter
uses: ./.github/actions/setup-flutter
- name: Test
run: melos test
build_example_android:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup Java
uses: ./.github/actions/setup-java
- name: Setup Flutter
uses: ./.github/actions/setup-flutter
- name: Build example Android
run: melos build:example:android
build_example_ios:
runs-on: macos-14
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Select Xcode
uses: ./.github/actions/select-xcode
- name: Setup Flutter
uses: ./.github/actions/setup-flutter
- name: Build example iOS
run: melos build:example:ios