Skip to content

Merge pull request #542 from fobo66/renovate/androidx.baselineprofile… #528

Merge pull request #542 from fobo66/renovate/androidx.baselineprofile…

Merge pull request #542 from fobo66/renovate/androidx.baselineprofile… #528

Workflow file for this run

name: Android CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
FACTCHECK_API_KEY: ${{secrets.FACTCHECK_API_KEY}}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Check Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Detekt
uses: gradle/[email protected]
with:
arguments: detekt
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: detekt
path: |
app/build/reports/detekt/detekt.html
data/build/reports/detekt/detekt.html
domain/build/reports/detekt/detekt.html
ui-tests:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Check Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Gradle cache
uses: gradle/[email protected]
- name: Run tests
uses: reactivecircus/[email protected]
with:
script: ./gradlew connectedDebugAndroidTest
arch: x86_64
target: google_apis
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
api-level: 34
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Check Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install latest build tools
run: echo "y" | /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager --install "build-tools;34.0.0-rc3"
- name: Run tests
uses: gradle/[email protected]
with:
arguments: testDebugUnitTest