Skip to content

Merge pull request #35 from LinX64/bugfix/removing_ios_ci #87

Merge pull request #35 from LinX64/bugfix/removing_ios_ci

Merge pull request #35 from LinX64/bugfix/removing_ios_ci #87

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Checks
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Check Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Detekt Check
run: ./gradlew detekt
unit-tests:
needs: check
name: Unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run Tests
run: ./gradlew testDebugUnitTest
androidTest:
needs: check
name: Instrumented tests
runs-on: macOS-12
strategy:
matrix:
device-config: [ "pixel6api31" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Accepting Android licenses
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
disable-animations: true
disk-size: 6000M
heap-size: 600M
script: ./gradlew connectedDemoDebugAndroidTest --daemon
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v3
with:
name: test-reports-${{ matrix.api-level }}
path: '*/build/reports/androidTests'