-
Notifications
You must be signed in to change notification settings - Fork 37
48 lines (40 loc) · 1.21 KB
/
ui-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: UI Test
on:
workflow_call:
inputs:
module:
description: 'Module to run'
required: true
type: string
jobs:
connected-android-tests:
timeout-minutes: 45
name: Run Connected Android Tests
# Run on macOS because we need to run the emulator and the emulator is not supported on Linux
runs-on: macos-13-large
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 on ${{ inputs.module }}
run: ./gradlew :${{ inputs.module }}:connectedAndroidTest --stacktrace