Change parse call to SDK instance #582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
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: 🏗️ Check-out l-breez repository | |
uses: actions/checkout@v4 | |
with: | |
path: 'lbreez' | |
- name: 🏗️ Setup breez-sdk-liquid repository | |
uses: actions/checkout@v4 | |
with: | |
repository: 'breez/breez-sdk-liquid' | |
ssh-key: ${{ secrets.REPO_SSH_KEY }} | |
path: 'breez-sdk-liquid' | |
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' | |
flutter-version: 3.22.3 # Pinned until resource linking issues on Android is resolved with 3.24 | |
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 . |