Skip to content

PIMOB-2183: Add UI test GHA flow #14

PIMOB-2183: Add UI test GHA flow

PIMOB-2183: Add UI test GHA flow #14

Workflow file for this run

name: UI Test
on:
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ "**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
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:
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 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