Skip to content

refactor: migrate nodeDB to Room database #1662

refactor: migrate nodeDB to Room database

refactor: migrate nodeDB to Room database #1662

Workflow file for this run

name: Android CI
on:
push:
branches: [ master ]
paths-ignore:
- "**.md"
pull_request:
branches: [ master ]
jobs:
ci-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Mock files for CI
run: |
rm ./app/google-services.json
cp ./app/google-services-example.json ./app/google-services.json
rm ./app/src/main/res/values/curfirmwareversion.xml
cp ./app/special/curfirmwareversion.xml ./app/src/main/res/values/
rm -rf ./app/src/main/assets/firmware
mkdir -p ./app/src/main/assets/firmware
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Check lint
run: ./gradlew lintFdroidDebug lintGoogleDebug
- name: Build debug artifacts
run: ./gradlew assembleDebug
- name: Run local tests
run: ./gradlew testFdroidDebug testGoogleDebug
- name: Upload debug artifact
uses: actions/upload-artifact@v3
with:
name: fdroidDebug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
retention-days: 30
- name: Upload build reports
if: always()
uses: actions/upload-artifact@v3
with:
name: build-reports
path: app/build/reports
retention-days: 30