test: ✅ add unit test for the main scaffold #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android | |
on: | |
push: | |
branches: | |
- dev | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
cache: true | |
- run: flutter --version | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: adopt | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- run: flutter pub get | |
- name: Download and generate build dependencies | |
run: bash setup.bash | |
- run: flutter build apk | |
- name: Archive result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android-target | |
path: | | |
build/app/outputs/flutter-apk/app-release.apk |