Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Invoke marathon-cloud cli

1.0.0

Invoke marathon-cloud cli

play

Invoke marathon-cloud cli

Invoke marathon-cloud CLI in GitHub Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Invoke marathon-cloud cli

uses: MarathonLabs/[email protected]

Learn more about this action in MarathonLabs/action-invoke

Choose a version

MarathonLabs/action-invoke

This action wraps marathon-cloud CLI in your GitHub Actions workflow.

Action Inputs

Name Description Default Example
apiKey (required) Marathon Cloud API key `` cafebabe
application (required) Application binary path.
Android: application should point to the APK file.
iOS: application should point to an ARM compatible Simulator build packaged in an ipa format or a zip archive.
Android: app/build/outputs/apk/debug/app-debug.apk
iOS: /home/user/workspace/sample.zip or /home/user/workspace/sample.ipa
testApplication (required) Test application binary path.
Android: test_application should point to the test .apk file for your app.
iOS: test_application should point to an ARM compatible iOS Test Runner app packaged in an ipa format or a zip archive.
Android: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
iOS: /home/user/workspace/sampleUITests-Runner.zip or /home/user/workspace/sampleUITests-Runner.ipa
platform (required) Testing platform `` Android or iOS
osVersion (optional) Android or iOS OS version `` 11, 15.5, etc.
systemImage (optional) OS-specific system image `` default, google_apis, etc.
output (optional) Output folder path `` ``
link (optional) Link to commit `` ``
isolated (optional) Run each test in isolation, i.e. isolated batching `` ``
flavor (optional) Type of tests to run `` native, js-test-appium, python-robotframework-appium
filterFile (optional) File containing test filters in YAML format, following the schema described at https://docs.marathonlabs.io/runner/configuration/filtering/#filtering-logic. For iOS see also https://docs.marathonlabs.io/runner/next/ios#test-plans. `` ``
wait (optional) Wait for test run to finish if true, exits after triggering a run if false. `` false
wait:
description: ""
required: false

Usage Examples

Basic

Android

- name: run tests using marathon-cloud
  uses: MarathonLabs/action-invoke@1
  with:
    apiKey: "cafebabe"
    application: "/home/user/workspace/sample.apk"
    testApplication: "/home/user/workspace/testSample.apk"
    platform: "android"

iOS

- name: run tests using marathon-cloud
  uses: MarathonLabs/action-invoke@1
  with:
    apiKey: "cafebabe"
    application: "/home/user/workspace/sample.zip"
    testApplication: "/home/user/workspace/sampleUITests-Runner.zip"
    platform: "ios"

Developing

The action source is located at /src. The action is written in TypeScript and compiled to a single javascript file with ncc. It's expected to checkin lib/index.js to the repository.

To setup the development environment, run the following commands:

$ npm install

To build the action script, run the following command:

$ npm run build

To test the action, we can use the workflow Test workflow to trigger a build.

LICENSE

MIT