-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (54 loc) · 2.2 KB
/
test-android-e2e.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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run E2E Tests for Android
on:
workflow_dispatch:
jobs:
test-android:
name: Test Android
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Setup Bundler
run: |
bundle config --local path ./vendor/bundle
bundle config --local deployment true
bundle install
- name: Setup Config
env:
custom_config: ${{ secrets.SECRETS }}
if: ${{ env.custom_config != '' }}
run: |
base64 -d <<< ${{ env.custom_config }} > custom.properties
- name: Ensure config files exist
run: |
touch custom.properties
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "17"
- name: Run Unit Tests
run: |
./gradlew testDebugUnitTest
- name: e2e tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
emulator-boot-timeout: 1200
target: playstore
avd-name: test
disable-animations: true
profile: Nexus 6
script: |
adb emu geo fix 72.58727 23.02579
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.MapLoadAndPlaceSearchFlowSuite
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.SearchDirectionFlowSuite
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.MapStylesSettingAndExplorerFlowSuite
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.AWSTrackingAndConnectionTestSuite
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.AWSGeofenceAndConnectionTestSuite
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: app/build/reports/androidTests/connected/
retention-days: 1