75 create a screen to display the status of our sequences #120
Workflow file for this run
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: Build app | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Clear cache | |
run: | | |
flutter clean | |
flutter pub get | |
- run: flutter --version | |
- run: java -version | |
- name: Delete pubspec.lock | |
run: rm pubspec.lock | |
- name: Build apk | |
run: flutter build apk --debug | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app_debug | |
path: build/app/outputs/flutter-apk/app-debug.apk | |
# integration-tests: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# api-level: [ 34 ] | |
# target: [ playstore ] | |
# needs: [ build ] | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: subosito/flutter-action@v2 | |
# with: | |
# channel: 'stable' | |
# - name: Retrieve dependencies | |
# run: dart pub get | |
# - name: Generate tests | |
# run: dart run build_runner build --delete-conflicting-outputs | |
# - name: Enable KVM | |
# run: | | |
# echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | |
# sudo udevadm control --reload-rules | |
# sudo udevadm trigger --name-match=kvm | |
# - name: Run Flutter Driver tests | |
# uses: reactivecircus/android-emulator-runner@v2 | |
# with: | |
# target: ${{ matrix.target }} | |
# api-level: ${{ matrix.api-level }} | |
# arch: x86_64 | |
# profile: Nexus 6 | |
# script: flutter drive --driver=integration_test/driver.dart --target=integration_test/panoramax_test.dart |