Skip to content

update

update #82

Workflow file for this run

on: [push, pull_request]
name: Test and Build Apk
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Install NDK
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.0.6113669" --sdk_root=${ANDROID_SDK_ROOT}
- name: Install dependencies
run: flutter pub get
- name: Run analyzer
run: flutter analyze .
- name: Run tests
run: flutter test
# Building example APK to ensure that the changes didn't break the existing code
- name: Build example apk
# https://issuetracker.google.com/issues/158753935
# AGP's bug: lintRelease do check debug/lib.jar cause build release apk fail
# so we decide temporary build debug apk before bug has been fixed.
run: cd example && flutter build apk --debug --split-per-abi