Skip to content

connection success with distoxble #238

connection success with distoxble

connection success with distoxble #238

Workflow file for this run

name: CaveSurvey Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
- name: Patch No Bosch Library
run: git apply --ignore-space-change --ignore-whitespace no_bosch_library.patch
- name: Assemble Debug
run: ./gradlew assembleDebug
- name: Store APK
uses: actions/upload-artifact@v1
with:
name: CaveSurvey-debug.apk
path: build/outputs/apk/defaultFlavor/debug
unit-tests:
needs: build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Patch No Bosch Library
run: git apply --ignore-space-change --ignore-whitespace no_bosch_library.patch
- name: Unit tests
run: ./gradlew test
- name: Test reports
uses: actions/upload-artifact@v2
with:
name: test-reports
path: build/reports/
espresso-tests:
needs: unit-tests
runs-on: macos-latest
strategy:
matrix:
api-level: [28, 29]
# 15, , 30
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 11
- name: Patch No Bosch Library
run: git apply --ignore-space-change --ignore-whitespace no_bosch_library.patch
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
- name: AVD cache
uses: actions/cache@v2
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
- name: Espresso tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: default
arch: x86
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
profile: Nexus 6
sdcard-path-or-size: 100M
disable-animations: true
script: ./gradlew connectedCheck
- name: Test reports
uses: actions/upload-artifact@v2
if: always()
with:
name: test-reports
path: build/reports/