Update cloud-ci.yaml #47
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: Run tests | |
on: push | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build app | |
working-directory: android-app | |
run: ./gradlew assembleDebug assembleAndroidTest | |
- name: Install marathon-cli-v2 | |
shell: bash | |
run: | | |
curl -L https://github.com/Malinskiy/marathon-cloud-cli/releases/download/1.0.23/marathon-cloud-v1.0.23-x86_64-unknown-linux-gnu.tar.gz -o ./marathon-cloud.tar.gz | |
tar -xzvf marathon-cloud.tar.gz | |
mkdir marathon-cloud | |
tar -xzvf marathon-cloud.tar.gz -C marathon-cloud --strip-components 1 | |
MARATHON_PATH=$(pwd)/marathon-cloud | |
echo "$MARATHON_PATH" >> $GITHUB_PATH | |
- name: Run tests | |
run: | | |
mkdir -p results | |
marathon-cloud run android -a android-app/app/build/outputs/apk/debug/app-debug.apk -t android-app/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk -o results --os-version 11 | |
env: | |
MARATHON_CLOUD_API_KEY: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} |