Skip to content

chore(deps): bump the libraries group with 2 updates #336

chore(deps): bump the libraries group with 2 updates

chore(deps): bump the libraries group with 2 updates #336

Workflow file for this run

name: CI
on:
pull_request:
push:
branches-ignore: [release]
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v16
with:
name: devenv
- name: Install devenv
run: nix profile add nixpkgs#devenv
- name: Check, test, and build
run: devenv shell -- just check
- name: Upload debug APK
uses: actions/upload-artifact@v4
with:
name: qownnotes-mobile-debug-${{ github.sha }}
path: app/build/outputs/apk/debug/app-debug.apk
retention-days: 14
device-test:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: "17"
cache: gradle
- uses: android-actions/setup-android@v4
with:
packages: platform-tools
- name: Install Android SDK
run: sdkmanager "platforms;android-37.0" "build-tools;35.0.0" "build-tools;36.0.0"
- 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 Android device tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 36
target: google_apis
arch: x86_64
profile: pixel_6
disable-animations: true
emulator-options: >-
-no-window -no-snapshot -no-boot-anim -noaudio
-gpu swiftshader_indirect -camera-back none
script: bash -c 'i=1; while [ $i -le 3 ]; do echo "Device test attempt $i/3"; if ./gradlew --no-daemon --no-configuration-cache connectedDebugAndroidTest; then echo "Tests passed on attempt $i"; exit 0; fi; if [ $i -lt 3 ]; then echo "Tests failed on attempt $i, retrying in 10 seconds..."; sleep 10; fi; i=$((i + 1)); done; echo "Tests failed after 3 attempts"; exit 1'
- name: Upload device-test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: android-device-test-reports-${{ github.sha }}
path: |
**/build/reports/androidTests/connected/**
**/build/outputs/androidTest-results/connected/**
**/build/outputs/connected_android_test_additional_output/**
if-no-files-found: warn
retention-days: 14