From a19b9147a9d3648fb4aa08c612ae1929b9e013dc Mon Sep 17 00:00:00 2001 From: Evgenii Matsiuk Date: Thu, 23 May 2024 14:57:04 +0300 Subject: [PATCH] feat: ignoreTestFailures flag was added (#12) --- README.md | 5 +++-- action.yaml | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5bd0c2..e29408e 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.5 + uses: MarathonLabs/action-test@1.0.6 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.10" + version: "1.0.13" ``` ## Inputs @@ -54,6 +54,7 @@ jobs: | `xctestplanTargetName` (optional) | Target name to use for test filtering in .xctestplan | `` | `` | | `xctestrunEnv` (optional) | Xctestrun environment variables, format: 'VAR1=VALUE1,VAR2=VALUE2' | `` | `VAR1=VALUE1,VAR2=VALUE2` | | `xctestrunTestEnv` (optional) | Xctestrun testing environment variables, format: 'VAR1=VALUE1,VAR2=VALUE2' | `` | `VAR1=VALUE1,VAR2=VALUE2` | +| `ignoreTestFailures` (optional) | When tests fail and this option is true then GHA will exit with code 0. By default, GHA will exit with code 1 in case of test failures and 0 for passing tests [possible values: true, false] | `false` | `true`, `false` | ## marathon-cloud version diff --git a/action.yaml b/action.yaml index eee7844..959491b 100644 --- a/action.yaml +++ b/action.yaml @@ -60,6 +60,9 @@ inputs: xctestrunTestEnv: description: "xctestrun testing environment variables, format: 'VAR1=VALUE1,VAR2=VALUE2'" required: false + ignoreTestFailures: + description: "When tests fail and this option is true then GHA will exit with code 0. By default, GHA will exit with code 1 in case of test failures and 0 for passing tests [possible values: true, false]" + required: false branding: color: purple icon: play-circle @@ -71,7 +74,7 @@ runs: with: version: ${{ inputs.version }} - name: Run tests using marathon-cloud - uses: MarathonLabs/action-invoke@1.0.4 + uses: MarathonLabs/action-invoke@1.0.5 with: apiKey: ${{ inputs.apiKey }} application: ${{ inputs.application }} @@ -92,3 +95,4 @@ runs: xctestplanTargetName: ${{ inputs.xctestplanTargetName }} xctestrunEnv: ${{ inputs.xctestrunEnv }} xctestrunTestEnv: ${{ inputs.xctestrunTestEnv }} + ignoreTestFailures: ${{ inputs.ignoreTestFailures }}