Skip to content

Commit

Permalink
Update android.yml to run ui test (euphony-io#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
zion830 committed Sep 5, 2022
1 parent 555b77a commit 627b303
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,42 @@ on:
- '**.md'

jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
ui:
- '**/ui/**'
- name: Set up JDK 11
if: steps.changes.outputs.ui == 'true'
uses: actions/setup-java@v2
with:
java-version: 11

- name: Run Android Tests
if: steps.changes.outputs.ui == 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedAndroidTest

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v1

- name: Set up JDK 11
uses: actions/setup-java@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11

- name: Build with Gradle
run: ./gradlew build
- name: Build with Gradle
run: ./gradlew build

0 comments on commit 627b303

Please sign in to comment.