Skip to content

Merge pull request #600 from AppDevNext/dependabot/gradle/com.android… #1478

Merge pull request #600 from AppDevNext/dependabot/gradle/com.android…

Merge pull request #600 from AppDevNext/dependabot/gradle/com.android… #1478

# https://github.com/uber/AutoDispose/blob/master/.github/workflows/ci.yml
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
BuildTest:
name: Build and test JDK ${{ matrix.java_version }} ${{ matrix.api }} ${{ matrix.tag }} ${{ matrix.abi }}
runs-on: macOS-13
strategy:
fail-fast: false
matrix:
java_version: [ 17 ]
api: [ 28 ]
abi: [ x86_64 ]
tag: [ 'default' ]
# include:
# # - api: 31
# # abi: x86_64
# # tag: 'google_apis'
# - api: 30
# abi: x86_64
# tag: 'google_apis'
# java_version: 17
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- uses: gradle/wrapper-validation-action@v3
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
- name: Decrypt keystore
run: ./signing/decrypt.sh
env:
CRYPT_PASS: ${{ secrets.CRYPT_PASS }}
- name: Build project
run: ./gradlew assembleDebug
- name: Run tests
run: ./gradlew test
- name: Run instrumentation tests
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.4
with:
cmd: ./gradlew cAT --continue
api: ${{ matrix.api }}
tag: ${{ matrix.tag }}
abi: ${{ matrix.abi }}
cmdOptions: -noaudio -no-boot-anim -no-window
bootTimeout: 720 # seconds = 12 minutes
- name: Archive Espresso results
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Logcat-Espresso-report
path: sample/build/reports/androidTests/connected
- name: Archive screenshots
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Logcat-Screenshots
path: |
sample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
sample/build/outputs/androidTest-results/connected
- name: cleanup
run: ./signing/cleanup.sh
Check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: gradle check
run: ./gradlew check
- name: Archive Lint report
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Logcat-Lint-report
path: ./**/build/reports/lint-results*.html