Commit bc734cd
Changed files (1)
.github
workflows
.github/workflows/app-CI.yml
@@ -55,66 +55,70 @@ jobs:
name: app-coverage
path: app/coverage/lcov.info
- integration-test:
- name: "🛠️🧪 Run integration tests"
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- # ensures there are no unexpected directories needed
- sparse-checkout: |
- app
- health_data_store
- - name: Enable KVM group perms
- # see: https://github.com/actions/runner-images/discussions/7191
- 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: Setup Java
- uses: actions/setup-java@v3
- with:
- distribution: 'zulu'
- java-version: ${{ env.JAVA_VERSION }}
-
- - name: Download Android emulator image
- run: |
- export ANDROID_TOOLS="$ANDROID_HOME/cmdline-tools/latest/bin"
- echo "y" | $ANDROID_TOOLS/sdkmanager --install "${{ env.EMULATOR_VERSION }}"
- echo "no" | $ANDROID_TOOLS/avdmanager create avd --force --name emu -k '${{ env.EMULATOR_VERSION }}'
- echo "Android emulator installed"
- $ANDROID_HOME/emulator/emulator -list-avds
- - name: Setup dart
- uses: dart-lang/setup-dart@v1
- with:
- sdk: ${{ env.DART_SDK }}
- - name: Generate code
- run: dart run build_runner build
- working-directory: health_data_store
- - name: Setup Flutter
- uses: subosito/flutter-action@v2
- with:
- channel: ${{ env.FLUTTER_CHANNEL }}
- - name: Start Android emulator
- timeout-minutes: 25
- run: |
- export ANDROID_TOOLS="$ANDROID_HOME/cmdline-tools/latest/bin"
- echo "Starting emulator"
- $ANDROID_TOOLS/sdkmanager "platform-tools" "${{ env.EMULATOR_VERSION }}"
- nohup $ANDROID_HOME/emulator/emulator -avd emu -no-audio -no-snapshot -no-window &
- $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
- $ANDROID_HOME/platform-tools/adb devices
- echo "Android emulator started"
- - name: Run integration tests
- run: flutter test integration_test --flavor github
- working-directory: app
+# Disabled: Integration tests are disabled as emulator setup fails on
+# GH-actions. Actions images no longer provide enough disk space to create
+# the userdata partition.
+#
+# integration-test:
+# name: "🛠️🧪 Run integration tests"
+# runs-on: ubuntu-latest
+#
+# steps:
+# - name: Checkout code
+# uses: actions/checkout@v4
+# with:
+# # ensures there are no unexpected directories needed
+# sparse-checkout: |
+# app
+# health_data_store
+# - name: Enable KVM group perms
+# # see: https://github.com/actions/runner-images/discussions/7191
+# 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: Setup Java
+# uses: actions/setup-java@v3
+# with:
+# distribution: 'zulu'
+# java-version: ${{ env.JAVA_VERSION }}
+#
+# - name: Download Android emulator image
+# run: |
+# export ANDROID_TOOLS="$ANDROID_HOME/cmdline-tools/latest/bin"
+# echo "y" | $ANDROID_TOOLS/sdkmanager --install "${{ env.EMULATOR_VERSION }}"
+# echo "no" | $ANDROID_TOOLS/avdmanager create avd --force --name emu -k '${{ env.EMULATOR_VERSION }}'
+# echo "Android emulator installed"
+# $ANDROID_HOME/emulator/emulator -list-avds
+# - name: Setup dart
+# uses: dart-lang/setup-dart@v1
+# with:
+# sdk: ${{ env.DART_SDK }}
+# - name: Generate code
+# run: dart run build_runner build
+# working-directory: health_data_store
+# - name: Setup Flutter
+# uses: subosito/flutter-action@v2
+# with:
+# channel: ${{ env.FLUTTER_CHANNEL }}
+# - name: Start Android emulator
+# timeout-minutes: 10
+# run: |
+# export ANDROID_TOOLS="$ANDROID_HOME/cmdline-tools/latest/bin"
+# echo "Starting emulator"
+# $ANDROID_TOOLS/sdkmanager "platform-tools" "${{ env.EMULATOR_VERSION }}"
+# nohup $ANDROID_HOME/emulator/emulator -avd emu -no-audio -no-snapshot -no-window &
+# $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'
+# $ANDROID_HOME/platform-tools/adb devices
+# echo "Android emulator started"
+# - name: Run integration tests
+# run: flutter test integration_test --flavor github
+# working-directory: app
build-android:
name: "🛠️ Build Android"
runs-on: ubuntu-latest
-
+
steps:
- name: Checkout code
uses: actions/checkout@v4