-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow runs all the checks on pull requests | ||
|
||
name: Pull Request Checks | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
marathon_33: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: MarathonLabs/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MARATHON_TOKEN: ${{ secrets.marathon_github_token }} | ||
with: | ||
version: "latest" | ||
- name: Assemble android tests | ||
run: ./gradlew -PCI=true assembleDebugAndroidTest assembleDebug | ||
- name: Print | ||
run: find -name "*.apk" | ||
- name: Run tests on android 33 | ||
run: | | ||
marathon-cloud -app samples/kaspresso-sample/build/outputs/apk/debug/kaspresso-sample-debug.apk \ | ||
-testapp samples/kaspresso-sample/build/outputs/apk/androidTest/debug/kaspresso-sample-debug-androidTest.apk \ | ||
-platform Android \ | ||
-api-key $MARATHON_TOKEN \ | ||
-os-version 13 \ | ||
-system-image google_apis | ||