-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 1.24 KB
/
cloud-ci.yaml
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
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.22/marathon-cloud-v1.0.22-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 }}