Skip to content

Commit

Permalink
feat(cli): try using marathon-cloud-cli v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Malinskiy committed Feb 3, 2024
1 parent 24d78a7 commit 4fc5336
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/cloud-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ jobs:
- 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.16/marathon-cloud-v1.0.16-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
uses: MarathonLabs/action-test@main
with:
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}
application: android-app/app/build/outputs/apk/debug/app-debug.apk
testApplication: android-app/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
githubToken: ${{ secrets.GITHUB_TOKEN }}
platform: Android
run: |
marathon-cloud run android --os-version 11 -a android-app/app/build/outputs/apk/debug/app-debug.apk -t android-app/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
env:
MARATHON_CLOUD_API_KEY: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}

0 comments on commit 4fc5336

Please sign in to comment.