Nothing Special   »   [go: up one dir, main page]

Skip to content

Attempt to fix flaky ui tests #17

Attempt to fix flaky ui tests

Attempt to fix flaky ui tests #17

Workflow file for this run

name: ci
on:
push:
branches:
- develop
pull_request:
workflow_dispatch:
jobs:
android:
runs-on: macos-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
api-level:
- 21
- 29
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew
- name: Cache Gradle dependencies
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
!~/.gradle/wrapper/dists/**/gradle*.zip
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew build --no-daemon
- name: Run unit tests
run: ./gradlew testBetaDebugUnitTest
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedBetaDebugAndroidTest
- name: Upload test reports
uses: actions/upload-artifact@v2
with:
name: reports
path: app/build/reports
if: always()