-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (57 loc) · 1.59 KB
/
ci.mobile.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
65
name: CI Mobile Workflow
on:
push:
paths:
- "apps/mobile/**"
- ".github/workflows/ci.mobile.yml"
branches: ["dev", "release/*"]
pull_request:
paths:
- "apps/mobile/**"
- ".github/workflows/ci.mobile.yml"
branches: ["dev", "release/*"]
jobs:
prepare-linux:
if: github.event.pull_request.draft != true
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
flutter_profile: development-linux-x86_64
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
unit_test:
needs: [prepare-linux]
if: github.event.pull_request.draft != true
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
flutter_profile: development-linux-x86_64
target: x86_64-unknown-linux-gnu
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: moonrepo/setup-toolchain@v0
- name: Install flutter
id: flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Install need deps
run: |
dart pub global activate melos
- name: "Flutter pub get"
run: moon run :pub.get --query "projectName=mobile"
- name: "Run unit test"
run: moon run :test --query "projectName=mobile"