Skip to content

Bump android action #330

Bump android action

Bump android action #330

Workflow file for this run

name: PullRequest
on: [ pull_request ]
jobs:
buildTest:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macOS-13 ]
java_version: [ 17 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- uses: gradle/wrapper-validation-action@v3
- name: Install Android SDK
uses: hannesa2/action-android/[email protected]
- name: Run tests
run: ./gradlew test
env:
VERSION: ${{ github.ref }}
- name: Run instrumentation tests
uses: hannesa2/action-android/[email protected]
env:
VERSION: ${{ github.ref }}
with:
cmd: ./gradlew cAT --continue
api: 28
tag: default
abi: x86
- name: Archive Espresso results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: IOIO-Espresso-report
path: applications/**/build/reports/androidTests/connected/
- name: Save logcat output
uses: actions/upload-artifact@v3
if: failure()
with:
name: IOIO-logcat
path: artifacts/logcat.log
- name: Archive screenshots
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: IOIO-Screenshots
path: |
applications/**/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
applications/**/build/outputs/androidTest-results/connected
Check:
name: Check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
java_version: [ 17 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- name: Install Android SDK
uses: hannesa2/action-android/[email protected]
- name: Code checks
run: ./gradlew check
- name: Archive Lint report
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: IOIO-Lint-report
path: applications/**/build/reports/lint-results.html