-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (74 loc) · 2.34 KB
/
CI.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Run CI
on:
# Triggers the workflow on push events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
liquid_sdk_ref:
description: 'Liquid SDK commit/tag/branch reference'
required: false
type: string
default: 'main'
breez_sdk_ref:
description: 'Breez SDK commit/tag/branch reference'
required: false
type: string
default: 'flutter_rust_bridge_v2'
workflow_call:
inputs:
liquid_sdk_ref:
description: 'Liquid SDK commit/tag/branch reference'
required: false
type: string
default: 'main'
breez_sdk_ref:
description: 'Breez SDK commit/tag/branch reference'
required: false
type: string
default: 'flutter_rust_bridge_v2'
jobs:
build:
runs-on: macOS-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: 🏗️ Setup l-breez repository
uses: actions/checkout@v4
with:
path: 'lbreez'
# TODO: Liquid - Revert once breez-sdk dependency is removed
- name: 🏗️ Setup breez-sdk repository
uses: actions/checkout@v4
with:
repository: 'breez/breez-sdk'
ssh-key: ${{secrets.REPO_SSH_KEY}}
path: 'breez-sdk'
ref: ${{ inputs.breez_sdk_ref || 'flutter_rust_bridge_v2' }}
- name: 🏗️ Setup breez-liquid-sdk repository
uses: actions/checkout@v4
with:
repository: 'breez/breez-liquid-sdk'
ssh-key: ${{secrets.REPO_SSH_KEY}}
path: 'breez-liquid-sdk'
ref: ${{ inputs.liquid_sdk_ref }}
- name: 🏗️ Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: 🏗️ Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: 📦 Install Flutter dependencies
working-directory: lbreez
run: flutter pub get
- name: 🔍 Perform static analysis
working-directory: lbreez
run: dart analyze --fatal-infos
- name: Check Formatting
working-directory: lbreez
run: dart format -o none --set-exit-if-changed -l 110 .