Chore: Run Android End to End Tests on Self-Hosted Github Runners #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: End To End Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
end-to-end-tests: | |
name: End To End Tests | |
runs-on: [self-hosted, ase-large-android-sdk-34] | |
timeout-minutes: 60 | |
steps: | |
- name: Set Android Sdk Env | |
run: export ANDROID_HOME=/usr/lib/android-sdk | |
- uses: actions/checkout@v4 | |
- name: Set local.properties | |
run: echo "sdk.dir=/usr/lib/android-sdk" > local.properties | |
- name: Gradle Wrapper Verification | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Launch docker containers | |
run: docker compose -f docker/e2e-tests.yml up -d artemis-app | |
- name: JDK setup | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: run tests | |
run: ./gradlew test --max-workers=4 -Dskip.unit-tests=true -Dskip.e2e=false -Dskip.debugVariants=true -Dskip.flavor.unrestricted=true -Dskip.flavor.beta=true | |
- name: Test Report | |
uses: dorny/test-reporter@v1 | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: Android End To End Test Results | |
path: test-outputs/**/*.xml | |
reporter: java-junit |