Skip to content

fix: save account repository #197

fix: save account repository

fix: save account repository #197

name: Flutter Build And Test
on:
push:
## all branches
branches:
- main
- dev
- feature/*
- bugfix/*
- hotfix/*
- release/v*
pull_request:
branches:
- main
jobs:
build:
name: Analyze and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/[email protected]
with:
flutter-version: 3.27.1
channel: stable
- name: Setup Dart
uses: dart-lang/[email protected]
with:
dart-version: 3.6.0
- name: Setup Java JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: set JAVA_HOME
run: echo "JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64" >> $GITHUB_ENV
- name: flutter jdk configuration
run: flutter config --jdk-dir /usr/lib/jvm/temurin-17-jdk-amd64
- name: Install dependencies
run: flutter pub get
- name: Analyze
run: flutter analyze
# - name: Run tests
# run: flutter test --concurrency=1 --test-randomize-ordering-seed=random
# - name: Run tests
# run: flutter test
- name: Build APK
run: flutter build apk --release --target lib/main/main_prod.dart
- name: Build Android App Bundle
run: flutter build appbundle --release --target lib/main/main_prod.dart