From f639123b88447781612a9a67acd5111cc6ec13c8 Mon Sep 17 00:00:00 2001 From: Evgenii Matsiuk Date: Fri, 31 May 2024 18:22:15 +0300 Subject: [PATCH] feat: outputGlob was supported (#13) --- README.md | 7 ++++--- action.yaml | 10 +++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e29408e..2912d13 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,14 @@ jobs: - name: Build app run: ./gradlew assembleDebug assembleAndroidTest - name: Run tests - uses: MarathonLabs/action-test@1.0.6 + uses: MarathonLabs/action-test@1.0.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 @@ -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` | diff --git a/action.yaml b/action.yaml index 959491b..9f17e63 100644 --- a/action.yaml +++ b/action.yaml @@ -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" @@ -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/action-invoke@1.0.5 + uses: MarathonLabs/action-invoke@1.0.6 with: apiKey: ${{ inputs.apiKey }} application: ${{ inputs.application }} @@ -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 }}