Skip to content

add build workflow #545

add build workflow

add build workflow #545

name: Format and Analyze
on:
pull_request:
branches:
- development
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- name: Set up Repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Set NDK Version
run: echo "ANDROID_NDK_VERSION=27.0.12077973" >> $GITHUB_ENV
- name: Get dependencies
run: flutter pub get
- name: Init build script
run: ./build.sh --init
- name: Initialize Reflectable
run: dart run build_runner build
- name: Format Dart files
run: dart format lib
- name: Analyze Dart code
run: dart analyze lib