Skip to content

ci: automate Android verification and releases #1

ci: automate Android verification and releases

ci: automate Android verification and releases #1

Workflow file for this run

name: Android CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: android-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Test and build debug APK
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out source
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Set up Java
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
with:
distribution: temurin
java-version: "17"
cache: gradle
- name: Set up Flutter
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2
with:
channel: stable
flutter-version: 3.27.4
cache: true
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
- name: Run static analysis
run: flutter analyze --no-fatal-infos
- name: Build debug APK
run: flutter build apk --debug
- name: Upload debug APK
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: marchkov-helper-debug-${{ github.sha }}
path: build/app/outputs/flutter-apk/app-debug.apk
if-no-files-found: error
retention-days: 7