Nothing Special   »   [go: up one dir, main page]

Skip to content

Restrict GitHub Action to develop #5

Restrict GitHub Action to develop

Restrict GitHub Action to develop #5

Workflow file for this run

name: ci
on:
push:
branches:
- develop
pull_request:
jobs:
ci:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
api-level:
- 21
- 33
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Grant execute permission for Gradle wrapper
run: chmod +x gradlew
- name: Build
run: ./gradlew build --no-daemon
- name: Run unit tests
run: ./gradlew testBetaDebugUnitTest
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedBetaDebugAndroidTest
- name: Upload test reports
uses: actions/upload-artifact@v2
with:
name: reports
path: app/build/reports
if: always()