Skip to content

ci: flutter demo in pipeline #25

ci: flutter demo in pipeline

ci: flutter demo in pipeline #25

Workflow file for this run

name: CI
on:
push:
branches: [ main, "**" ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: "3.9.2"
- name: Install lipo (macOS)
if: matrix.os == 'macos-latest'
run: |
which lipo || echo 'lipo available in Xcode toolchain'
- name: Generate bindings and native library
run: |
chmod +x scripts/generate_bindings.sh
./scripts/generate_bindings.sh
- name: Ensure generated bindings exist
run: test -f lib/bdk.dart
- name: Pub get
run: dart pub get
- name: Pub get (bdk_demo)
working-directory: bdk_demo
run: flutter pub get
- name: Format check
run: dart format --output=none --set-exit-if-changed lib test examples bdk_demo/lib bdk_demo/test
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings lib test examples
- name: Analyze (bdk_demo)
working-directory: bdk_demo
run: flutter analyze
- name: Run tests
run: |
dart test