Skip to content

Commit

Permalink
feat: outputGlob was supported (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzuk authored May 31, 2024
1 parent a19b914 commit f639123
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
- name: Build app
run: ./gradlew assembleDebug assembleAndroidTest
- name: Run tests
uses: MarathonLabs/[email protected].6
uses: MarathonLabs/[email protected].7
with:
apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }}
application: app/build/outputs/apk/debug/app-debug.apk
testApplication: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
platform: android
output: "./results"
version: "1.0.13"
version: "1.0.15"
```
## Inputs
Expand All @@ -41,7 +41,8 @@ jobs:
| `platform` (required) | Testing platform | `` | `Android` or `iOS` |
| `osVersion` (optional) | Android or iOS OS version. For Android one of [10, 11, 12, 13, 14]. For iOS one of [16.4, 17.2] | **Android**: `11`; **iOS**: `16.4` | `12`, `17.2`, etc. |
| `systemImage` (optional) | OS-specific system image. For Android only | `` | `default`, `google_apis`, etc. |
| `output` (optional) | Output folder path | `` | `` |
| `output` (optional) | Output folder for test run results | `` | `output` |
| `outputGlob` (optional) | Only files matching this glob will be downloaded, i.e. 'tests/\*\*' will download only the JUnit xml files | `` | `tests/**` |
| `link` (optional) | Link to commit | `` | `` |
| `isolated` (optional) | Run each test in isolation, i.e. isolated batching | `false` | `true`, `false` |
| `flavor` (optional) | Type of tests to run | `native` | `native`, `js-test-appium`, `python-robotframework-appium` |
Expand Down
10 changes: 7 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ inputs:
description: "Link to commit"
required: false
output:
description: "Output folder"
description: "Output folder for test run results"
required: false
outputGlob:
description: "Only files matching this glob will be downloaded, i.e. 'tests/**' will download only the JUnit xml files"
required: false
isolated:
description: "Run each test in isolation, i.e. isolated batching"
Expand Down Expand Up @@ -70,11 +73,11 @@ runs:
using: composite
steps:
- name: Setup marathon-cloud
uses: MarathonLabs/setup-marathon-cloud@2
uses: MarathonLabs/setup-marathon-cloud@2.0.1
with:
version: ${{ inputs.version }}
- name: Run tests using marathon-cloud
uses: MarathonLabs/[email protected].5
uses: MarathonLabs/[email protected].6
with:
apiKey: ${{ inputs.apiKey }}
application: ${{ inputs.application }}
Expand All @@ -84,6 +87,7 @@ runs:
systemImage: ${{ inputs.systemImage }}
link: ${{ inputs.link }}
output: ${{ inputs.output }}
outputGlob: ${{ inputs.outputGlob }}
isolated: ${{ inputs.isolated }}
flavor: ${{ inputs.flavor }}
filterFile: ${{ inputs.filterFile }}
Expand Down

0 comments on commit f639123

Please sign in to comment.