Added more in gitignore #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 instrumented tests with GMD | |
run: ./gradlew cleanManagedDevices --unused-only && | |
./gradlew ${{ matrix.device-config }}paxDebugAndroidTest -Dorg.gradle.workers.max=1 | |
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | |
- name: Upload test reports | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-reports-${{ matrix.api-level }} | |
path: '*/build/reports/androidTests' |