Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jheng-hao-lin-cko committed Oct 13, 2023
1 parent 963e7f3 commit 4f93f4e
Showing 1 changed file with 39 additions and 3 deletions.
42 changes: 39 additions & 3 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ concurrency:
cancel-in-progress: true

jobs:
ui-test:
name: Run UI Test
connected-check:
name: Run Connected Check
# Run on macOS because we need to run the emulator and the emulator is not supported on Linux
runs-on: macos-latest
strategy:
Expand Down Expand Up @@ -45,4 +45,40 @@ jobs:
run: chmod +x ./scripts/launch-emulator.sh && ./scripts/launch-emulator.sh

- name: Run UI Test
run: ./gradlew connectedCheck
run: ./gradlew connectedCheck --stacktrace
frames-android-tests:
name: Run Frames Android Tests
# Run on macOS because we need to run the emulator and the emulator is not supported on Linux
runs-on: macos-latest
strategy:
fail-fast: true

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Cache Gradle and wrapper
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}

- name: Launch Emulator
run: chmod +x ./scripts/launch-emulator.sh && ./scripts/launch-emulator.sh

- name: Run UI Test
run: ./gradlew connectedDebugAndroidTest --stacktrace

0 comments on commit 4f93f4e

Please sign in to comment.