From 0e80e05ecff2231389ec58d5ee5b76551205fee3 Mon Sep 17 00:00:00 2001 From: eugene_matsyuk Date: Tue, 21 Jan 2025 12:09:00 +0300 Subject: [PATCH 1/3] feat: analyticsReadOnly flag support --- README.md | 1 + action.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 8a56124..4988d5e 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ jobs: | `branch` (optional) | Branch for run, for example it could be git branch like develop or feature/about-screen | `` | `develop` | | `project` (optional) | The unique identifier (slug) for the project | `` | `` | | `grantedPermission` (optional) | Grant permission to application. Important: Granting is conducted before each test batch (not each test). If you need to grant before each test, please use --isolated mode. Available permissions: calendar, contacts-limited, contacts, location, location-always, photos-add, photos, media-library, microphone, motion, reminders, siri | `` | `motion,siri,calendar` | +| `analyticsReadOnly` (optional) | If true then test run will not affect any statistical measurements | `false` | `true`, `false` | ## marathon-cloud version diff --git a/action.yaml b/action.yaml index f6c69f3..c0afc55 100644 --- a/action.yaml +++ b/action.yaml @@ -82,6 +82,9 @@ inputs: grantedPermission: description: "Grant permission to application. Important: Granting is conducted before each test batch (not each test). If you need to grant before each test, please use --isolated mode. Available permissions: calendar, contacts-limited, contacts, location, location-always, photos-add, photos, media-library, microphone, motion, reminders, siri. Format: 'motion,siri'" required: false + analyticsReadOnly: + description: "If true then test run will not affect any statistical measurements [possible values: true, false]" + required: false branding: color: purple icon: play-circle @@ -121,3 +124,4 @@ runs: branch: ${{ inputs.branch }} project: ${{ inputs.project }} grantedPermission: ${{ inputs.grantedPermission }} + analyticsReadOnly: ${{ inputs.analyticsReadOnly }} From 90c4838e60c0486cd0f93d7e7fafe59105d230fc Mon Sep 17 00:00:00 2001 From: eugene_matsyuk Date: Tue, 21 Jan 2025 12:10:55 +0300 Subject: [PATCH 2/3] test: check analyticsReadOnly_flag) --- .github/workflows/ci.yaml | 168 +++++++++++++++++++------------------- 1 file changed, 85 insertions(+), 83 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5fb30b7..c7559d3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,89 +21,90 @@ jobs: platform: android name: "android_3_0" version: "1.0.38" - - check_output_android: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Run tests - uses: ./ - with: - apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} - application: "example/app.apk" - testApplication: "example/appTest.apk" - platform: android - name: "android_3_0" - output: "output" - version: "1.0.38" - resultFile: "some-result.json" - branch: "develop" - - - name: Check if output folder exists and is not empty - run: | - if [ -d "output" ] && [ "$(ls -A output)" ]; then - echo "Output folder exists and is not empty." - else - echo "Output folder does not exist or is empty." - exit 1 - fi - - - name: Check if resultFile exists - run: | - if [ ! -f "some-result.json" ]; then - echo "Error: some-result.json does not exist." - exit 1 - fi - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: output_android - path: output - - - name: Upload resultFile - if: always() - uses: actions/upload-artifact@v4 - with: - name: some-result.json - path: some-result.json - - check_failed_android: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Run tests - uses: ./ - with: - apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} - application: "example/app.apk" - testApplication: "example/appTestFailed.apk" - platform: android - name: "android_3_0" - output: "output" - version: "1.0.38" - ignoreTestFailures: "true" - - - name: Check if output folder exists and is not empty - run: | - if [ -d "output" ] && [ "$(ls -A output)" ]; then - echo "Output folder exists and is not empty." - else - echo "Output folder does not exist or is empty." - exit 1 - fi - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: output_android_failed - path: output + analyticsReadOnly: "true" + + # check_output_android: + # runs-on: ubuntu-latest + + # steps: + # - name: Checkout repository + # uses: actions/checkout@v2 + + # - name: Run tests + # uses: ./ + # with: + # apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} + # application: "example/app.apk" + # testApplication: "example/appTest.apk" + # platform: android + # name: "android_3_0" + # output: "output" + # version: "1.0.38" + # resultFile: "some-result.json" + # branch: "develop" + + # - name: Check if output folder exists and is not empty + # run: | + # if [ -d "output" ] && [ "$(ls -A output)" ]; then + # echo "Output folder exists and is not empty." + # else + # echo "Output folder does not exist or is empty." + # exit 1 + # fi + + # - name: Check if resultFile exists + # run: | + # if [ ! -f "some-result.json" ]; then + # echo "Error: some-result.json does not exist." + # exit 1 + # fi + + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: output_android + # path: output + + # - name: Upload resultFile + # if: always() + # uses: actions/upload-artifact@v4 + # with: + # name: some-result.json + # path: some-result.json + + # check_failed_android: + # runs-on: ubuntu-latest + + # steps: + # - name: Checkout repository + # uses: actions/checkout@v2 + + # - name: Run tests + # uses: ./ + # with: + # apiKey: ${{ secrets.MARATHON_CLOUD_API_TOKEN }} + # application: "example/app.apk" + # testApplication: "example/appTestFailed.apk" + # platform: android + # name: "android_3_0" + # output: "output" + # version: "1.0.38" + # ignoreTestFailures: "true" + + # - name: Check if output folder exists and is not empty + # run: | + # if [ -d "output" ] && [ "$(ls -A output)" ]; then + # echo "Output folder exists and is not empty." + # else + # echo "Output folder does not exist or is empty." + # exit 1 + # fi + + # - name: Upload artifact + # uses: actions/upload-artifact@v4 + # with: + # name: output_android_failed + # path: output check_ios: runs-on: ubuntu-latest @@ -122,6 +123,7 @@ jobs: name: "ios_3_0" output: "output" version: "1.0.38" + analyticsReadOnly: "true" - name: Check if output folder exists and is not empty run: | From f78ca98f6e5cd9b8dd9c0d5aa668db899f561158 Mon Sep 17 00:00:00 2001 From: eugene_matsyuk Date: Tue, 21 Jan 2025 12:13:37 +0300 Subject: [PATCH 3/3] test: 1.0.13 action-invoke --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index c0afc55..06b7aa1 100644 --- a/action.yaml +++ b/action.yaml @@ -96,7 +96,7 @@ runs: with: version: ${{ inputs.version }} - name: Run tests using marathon-cloud - uses: MarathonLabs/action-invoke@1.0.12 + uses: MarathonLabs/action-invoke@1.0.13 with: apiKey: ${{ inputs.apiKey }} application: ${{ inputs.application }}