Skip to content

Run CI

Run CI #636

Workflow file for this run

name: Run CI
# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: macOS-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
path: 'cbreez'
- uses: actions/checkout@v3
with:
repository: 'breez/breez-sdk'
ssh-key: ${{secrets.REPO_SSH_KEY}}
path: 'breez-sdk'
# Setup the flutter environment.
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.12'
channel: 'stable'
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: flutter-doctor
run: |
cd cbreez
flutter doctor
- name: pub-get
run: |
cd cbreez
flutter pub get
- name: dart-analyze
run: |
cd cbreez
dart analyze --fatal-infos
- name: run-tests
run: |
cd cbreez
flutter test
- name: dart-format
run: |
cd cbreez
dart format -o none --set-exit-if-changed -l 110 .