Update plugin androidx.baselineprofile to v1.2.1 #577
Workflow file for this run
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: 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 |