Skip to content

PIMOB-2183: Add UI test GHA flow #4

PIMOB-2183: Add UI test GHA flow

PIMOB-2183: Add UI test GHA flow #4

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:
ui-test:
name: UI Test
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
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: Install Android SDK Packages and Launch Emulator
run: chmod +x ./scripts/install-android-sdk-packages.sh && ./scripts/install-android-sdk-packages.sh
- name: UI Test
run: ./gradlew :frames:connectedDebugAndroidTest