From a610caa5d3454ba8f9d13b2a27bf94a823427f28 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Sat, 14 Sep 2024 10:11:22 +0200 Subject: [PATCH 01/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 8ce348f..fb7eb83 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -57,10 +57,14 @@ jobs: --request POST 'https://api.eu-central-1.saucelabs.com/v1/storage/upload' \ --form 'payload=@"appodeal-android-sdk/banner/build/outputs/apk/debug/banner-debug.apk"' \ --form 'name="banner-debug.apk"' \ - --form 'description="APD demo \n ${GITHUB_REF_NAME}"' + --form 'description="APD demo ${{ GITHUB_REF_NAME}} launch by ${{GITHUB_RUN_ID}}"' + + # GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 # GITHUB_REPOSITORY=appodeal/appodeal-android-sdk # https://github.com/appodeal/appodeal-android-sdk/actions/runs/10653731636 # GITHUB_TRIGGERING_ACTOR=johnlitvinov +# ${{ env.GITHUB_RUN_ID }} + From b8035cb04c7d81e774b0543316ce723e42c9bb17 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Sat, 14 Sep 2024 10:13:24 +0200 Subject: [PATCH 02/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index fb7eb83..9f1f529 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -57,7 +57,7 @@ jobs: --request POST 'https://api.eu-central-1.saucelabs.com/v1/storage/upload' \ --form 'payload=@"appodeal-android-sdk/banner/build/outputs/apk/debug/banner-debug.apk"' \ --form 'name="banner-debug.apk"' \ - --form 'description="APD demo ${{ GITHUB_REF_NAME}} launch by ${{GITHUB_RUN_ID}}"' + --form 'description="APD demo ${{ env.GITHUB_REF_NAME }} launch by ${{ env.GITHUB_RUN_ID }}"' From 29cfe073e2ca01728f892b96a3ffb65c3df160aa Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Sun, 13 Oct 2024 12:40:56 +0200 Subject: [PATCH 03/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 56 ++++++++++++++++++++++-- banner/build.gradle | 12 ++++- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 9f1f529..714015b 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -42,9 +42,11 @@ jobs: - name: Build with Gradle working-directory: ${{ github.workspace }}/appodeal-android-sdk - run: ./gradlew :banner:assembleDebug + run: | + ./gradlew updateVersionName -PnewVersion= ${{ env.GITHUB_RUN_NUMBER }} + ./gradlew :banner:assembleDebug - - name: save debug build for aws + - name: save debug build for Saucelabs uses: actions/upload-artifact@v4 with: name: banner-debug.apk @@ -59,12 +61,60 @@ jobs: --form 'name="banner-debug.apk"' \ --form 'description="APD demo ${{ env.GITHUB_REF_NAME }} launch by ${{ env.GITHUB_RUN_ID }}"' + tests: + name: run ui tests on aws with appium + needs: build + runs-on: ${{ github.event.inputs.runner || 'autotestdebug' }} + timeout-minutes: 30 + steps: + - name: Print Env Variables + run: env + working-directory: ${{ github.workspace }} + + - name: checkout source code of application + uses: actions/checkout@v4 + with: + path: 'SDK-Auto-Test' + clean: true + repository: 'appodeal/SDK-Auto-Test' + ref: 'aws' + token: ${{ secrets.UITESTREPOACCESS }} + + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + + - name: Launch tests on SauceLabs + working-directory: ${{ github.workspace }}/SDK-Auto-Test + run: | + mvn clean + mvn -Dtest=AndroidAppTest test + + - name: save Allure result + uses: actions/upload-artifact@v4 + if: always() + with: + name: allure-results + path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-results + + - name: Adding summary + if: ${{ always() }} + run: | + echo "### Results of test execution :fire:" >> $GITHUB_STEP_SUMMARY + echo "Launch: ${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY + echo "Device: ${{ github.event.inputs.device }}" >> $GITHUB_STEP_SUMMARY + echo "Build agent: ${{ github.event.inputs.runner }}" >> $GITHUB_STEP_SUMMARY -# GITHUB_REF_NAME=feature/auto_test +# GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 # GITHUB_REPOSITORY=appodeal/appodeal-android-sdk # https://github.com/appodeal/appodeal-android-sdk/actions/runs/10653731636 # GITHUB_TRIGGERING_ACTOR=johnlitvinov # ${{ env.GITHUB_RUN_ID }} +# +# mvn clean test -DtestEnv=${ENVIRONMENT} -P${SUITE} -Dmaven.repo.local=$MAVEN_LOCAL_REPO -Dstand=${STAND} -Dselenide.browser=${PLATFORM} -Dlocal_run=false +# mvn io.qameta.allure:allure-maven:report -Dmaven.repo.local=$MAVEN_LOCAL_REPO \ No newline at end of file diff --git a/banner/build.gradle b/banner/build.gradle index 04d1b0e..9f081f6 100644 --- a/banner/build.gradle +++ b/banner/build.gradle @@ -13,7 +13,7 @@ android { minSdkVersion 21 targetSdkVersion 34 versionCode 1 - versionName "1.0" + versionName "1.0.0" } buildTypes { release { @@ -34,6 +34,16 @@ android { } } +task updateVersionCode { + doLast { + def versionFile = file('build.gradle') + def newVersionCode = project.hasProperty('newversionCode') ? project.newversionCode : 1 + def content = versionFile.getText('UTF-8') + def updatedContent = content.replaceAll(/versionCode \d+/, 'versionCode ' + newVersionCode) + versionFile.write(updatedContent, 'UTF-8') + } +} + dependencies { implementation 'androidx.core:core-ktx:1.13.1' implementation 'androidx.appcompat:appcompat:1.7.0' From 860ce947b3c1bccb6c0f122bc7e1db7e88ddc5d0 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Sun, 13 Oct 2024 12:47:30 +0200 Subject: [PATCH 04/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 714015b..8a817bd 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -43,7 +43,7 @@ jobs: - name: Build with Gradle working-directory: ${{ github.workspace }}/appodeal-android-sdk run: | - ./gradlew updateVersionName -PnewVersion= ${{ env.GITHUB_RUN_NUMBER }} + ./gradlew updateVersionName -PnewVersion=${{ env.GITHUB_RUN_NUMBER }} || true ./gradlew :banner:assembleDebug - name: save debug build for Saucelabs From 1adfb2bb4db53a31b1f9c3dd8070a8d6222a04ce Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 14 Oct 2024 10:13:10 +0200 Subject: [PATCH 05/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 8a817bd..890abaf 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -90,6 +90,7 @@ jobs: working-directory: ${{ github.workspace }}/SDK-Auto-Test run: | mvn clean + sleep 10 mvn -Dtest=AndroidAppTest test - name: save Allure result From e0e9f3107e2cbfe86523e358edd7d24022a9df9b Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 14 Oct 2024 14:06:39 +0200 Subject: [PATCH 06/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 890abaf..a30d088 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -80,10 +80,10 @@ jobs: ref: 'aws' token: ${{ secrets.UITESTREPOACCESS }} - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'temurin' - name: Launch tests on SauceLabs From 06de226d3f7d77c8007f507f69392046cbd5e4bf Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Tue, 15 Oct 2024 09:09:22 +0200 Subject: [PATCH 07/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index a30d088..9f5c9a8 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -93,6 +93,16 @@ jobs: sleep 10 mvn -Dtest=AndroidAppTest test + - name: Install Allure + run: | + curl -o allure-2.13.8.tgz -L https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.13.8/allure-commandline-2.13.8.tgz + tar -zxvf allure-2.13.8.tgz + sudo mv allure-2.13.8 /opt/allure + sudo ln -s /opt/allure/bin/allure /usr/bin/allure + + - name: Generate Allure Report + run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o allure-report + - name: save Allure result uses: actions/upload-artifact@v4 if: always() @@ -100,6 +110,14 @@ jobs: name: allure-results path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-results + - name: Upload Allure HTML Report + uses: actions/upload-artifact@v4 + if: always() + with: + name: allure-html-report + path: allure-report + retention-days: 14 + - name: Adding summary if: ${{ always() }} run: | @@ -108,7 +126,6 @@ jobs: echo "Device: ${{ github.event.inputs.device }}" >> $GITHUB_STEP_SUMMARY echo "Build agent: ${{ github.event.inputs.runner }}" >> $GITHUB_STEP_SUMMARY - # GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 # GITHUB_REPOSITORY=appodeal/appodeal-android-sdk From 06df1dff2ef458824787ba3182c1353838eef80b Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Tue, 15 Oct 2024 09:30:54 +0200 Subject: [PATCH 08/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 9f5c9a8..e9cd2ff 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -93,16 +93,6 @@ jobs: sleep 10 mvn -Dtest=AndroidAppTest test - - name: Install Allure - run: | - curl -o allure-2.13.8.tgz -L https://repo.maven.apache.org/maven2/io/qameta/allure/allure-commandline/2.13.8/allure-commandline-2.13.8.tgz - tar -zxvf allure-2.13.8.tgz - sudo mv allure-2.13.8 /opt/allure - sudo ln -s /opt/allure/bin/allure /usr/bin/allure - - - name: Generate Allure Report - run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o allure-report - - name: save Allure result uses: actions/upload-artifact@v4 if: always() @@ -110,14 +100,6 @@ jobs: name: allure-results path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-results - - name: Upload Allure HTML Report - uses: actions/upload-artifact@v4 - if: always() - with: - name: allure-html-report - path: allure-report - retention-days: 14 - - name: Adding summary if: ${{ always() }} run: | From dd56ac0f42286eecf0029eee608ec09fdb56a5dd Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Thu, 17 Oct 2024 15:19:50 +0200 Subject: [PATCH 09/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index e9cd2ff..f8b9e62 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -80,6 +80,14 @@ jobs: ref: 'aws' token: ${{ secrets.UITESTREPOACCESS }} + - name: Get Allure history + uses: actions/checkout@v4 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + - name: Set up JDK 17 uses: actions/setup-java@v4 with: @@ -100,6 +108,29 @@ jobs: name: allure-results path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-results + - name: convert allure-result to allure-report + run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o allure-report + + - name: save Allure report + uses: actions/upload-artifact@v4 + if: always() + with: + name: allure-report + path: ${{ github.workspace }}/allure-report + + - name: upload allure-result to gh-pages + uses: simple-elf/allure-report-action@master + if: always() + id: allure-report + with: + allure_results: build/allure-results + gh_pages: gh-pages + allure_report: allure-report + allure_history: allure-history + + - name: notification to Slack + run: pwd + - name: Adding summary if: ${{ always() }} run: | From adb1a9c7e1ede0fa5ada478bf5103715262d1e47 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Thu, 17 Oct 2024 15:39:10 +0200 Subject: [PATCH 10/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 69 +++++++++++++++++------- 1 file changed, 50 insertions(+), 19 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index f8b9e62..38c5a4a 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -62,7 +62,7 @@ jobs: --form 'description="APD demo ${{ env.GITHUB_REF_NAME }} launch by ${{ env.GITHUB_RUN_ID }}"' tests: - name: run ui tests on aws with appium + name: run ui tests on SauceLabs with appium needs: build runs-on: ${{ github.event.inputs.runner || 'autotestdebug' }} timeout-minutes: 30 @@ -80,14 +80,6 @@ jobs: ref: 'aws' token: ${{ secrets.UITESTREPOACCESS }} - - name: Get Allure history - uses: actions/checkout@v4 - if: always() - continue-on-error: true - with: - ref: gh-pages - path: gh-pages - - name: Set up JDK 17 uses: actions/setup-java@v4 with: @@ -118,16 +110,6 @@ jobs: name: allure-report path: ${{ github.workspace }}/allure-report - - name: upload allure-result to gh-pages - uses: simple-elf/allure-report-action@master - if: always() - id: allure-report - with: - allure_results: build/allure-results - gh_pages: gh-pages - allure_report: allure-report - allure_history: allure-history - - name: notification to Slack run: pwd @@ -139,6 +121,55 @@ jobs: echo "Device: ${{ github.event.inputs.device }}" >> $GITHUB_STEP_SUMMARY echo "Build agent: ${{ github.event.inputs.runner }}" >> $GITHUB_STEP_SUMMARY + upload: + name: upload allure to gp-pages + needs: tests + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Print Env Variables + run: env + working-directory: ${{ github.workspace }} + + - name: Get Allure history + uses: actions/checkout@v4 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: download allure results + uses: actions/download-artifact@v4 + with: + name: allure-results + path: allure-results + + - name: download allure report + uses: actions/download-artifact@v4 + with: + name: allure-report + path: allure-report + + - name: upload allure-result to gh-pages + uses: simple-elf/allure-report-action@master + if: always() + id: allure-report + with: + allure_results: allure-results + gh_pages: gh-pages + allure_report: allure-report + allure_history: allure-history + + - name: Deploy report to Github Pages + if: always() + uses: peaceiris/actions-gh-pages@v2 + env: + PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: allure-history + + # GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 # GITHUB_REPOSITORY=appodeal/appodeal-android-sdk From 8b1d482db7c85d31387dfe662f7438d64d524708 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Thu, 17 Oct 2024 15:45:37 +0200 Subject: [PATCH 11/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 38c5a4a..24cf3ce 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -101,6 +101,7 @@ jobs: path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-results - name: convert allure-result to allure-report + if: always() run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o allure-report - name: save Allure report @@ -111,6 +112,7 @@ jobs: path: ${{ github.workspace }}/allure-report - name: notification to Slack + if: always() run: pwd - name: Adding summary From 0e083784d42be776afd0bad18ed885f606bbec08 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Thu, 17 Oct 2024 15:55:49 +0200 Subject: [PATCH 12/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 24cf3ce..a227788 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -113,7 +113,7 @@ jobs: - name: notification to Slack if: always() - run: pwd + run: java "-DconfigFile=allure_notifications/config.json" -jar allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary if: ${{ always() }} From e9dfebf60581c2398c3a28b5307bc8381c969f2e Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Wed, 23 Oct 2024 17:11:31 +0200 Subject: [PATCH 13/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index a227788..1cc5081 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -113,7 +113,9 @@ jobs: - name: notification to Slack if: always() - run: java "-DconfigFile=allure_notifications/config.json" -jar allure_notifications/allure-notifications-4.8.0.jar + run: | + chmod +x allure_notifications/allure-notifications-4.8.0.jar + java "-DconfigFile=allure_notifications/config.json" -jar allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary if: ${{ always() }} @@ -127,7 +129,7 @@ jobs: name: upload allure to gp-pages needs: tests runs-on: ubuntu-latest - timeout-minutes: 10 + timeout-minutes: 3 steps: - name: Print Env Variables run: env From f08c450016c2a90941bb4d2fd0d6116fe4aaf880 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Wed, 23 Oct 2024 17:21:00 +0200 Subject: [PATCH 14/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 1cc5081..a2a6aa7 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -114,8 +114,9 @@ jobs: - name: notification to Slack if: always() run: | - chmod +x allure_notifications/allure-notifications-4.8.0.jar - java "-DconfigFile=allure_notifications/config.json" -jar allure_notifications/allure-notifications-4.8.0.jar + pwd + chmod +x ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar + java "-DconfigFile=allure_notifications/config.json" -jar ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary if: ${{ always() }} @@ -173,6 +174,16 @@ jobs: PUBLISH_BRANCH: gh-pages PUBLISH_DIR: allure-history + - name: Post the link to the report + if: always() + uses: Sibz/github-status-action@v1 + with: + authToken: ${{secrets.GITHUB_TOKEN}} + context: 'Test report' + state: 'success' + sha: ${{ github.event.pull_request.head.sha }} + target_url: simple-elf.github.io/github-allure-history/${{ github.run_number }} + # GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 From d151bf5c72e49fba03874928bddb1fd99845f0e5 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Wed, 23 Oct 2024 17:26:01 +0200 Subject: [PATCH 15/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index a2a6aa7..17d28de 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -114,9 +114,8 @@ jobs: - name: notification to Slack if: always() run: | - pwd chmod +x ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - java "-DconfigFile=allure_notifications/config.json" -jar ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar + java "-DconfigFile=${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json" -jar ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary if: ${{ always() }} From 9b81a76b9d4b31b53fa104c00a0ef1c2978c4e3b Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Wed, 23 Oct 2024 17:43:46 +0200 Subject: [PATCH 16/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 17d28de..dbbe60a 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -102,14 +102,14 @@ jobs: - name: convert allure-result to allure-report if: always() - run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o allure-report + run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o ${{ github.workspace }}/SDK-Auto-Test/target/allure-report - name: save Allure report uses: actions/upload-artifact@v4 if: always() with: name: allure-report - path: ${{ github.workspace }}/allure-report + path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-report - name: notification to Slack if: always() From 1201e9a04b02e82dcfdaeea4855cfd28028d1711 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Wed, 23 Oct 2024 18:01:26 +0200 Subject: [PATCH 17/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index dbbe60a..4348f69 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -102,14 +102,14 @@ jobs: - name: convert allure-result to allure-report if: always() - run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o ${{ github.workspace }}/SDK-Auto-Test/target/allure-report + run: allure generate ${{ github.workspace }}/SDK-Auto-Test/target/allure-results --clean -o ${{ github.workspace }}/SDK-Auto-Test/allure-report - name: save Allure report uses: actions/upload-artifact@v4 if: always() with: name: allure-report - path: ${{ github.workspace }}/SDK-Auto-Test/target/allure-report + path: ${{ github.workspace }}/SDK-Auto-Test/allure-report - name: notification to Slack if: always() @@ -181,8 +181,7 @@ jobs: context: 'Test report' state: 'success' sha: ${{ github.event.pull_request.head.sha }} - target_url: simple-elf.github.io/github-allure-history/${{ github.run_number }} - + target_url: http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }} # GITHUB_REF_NAME=feature/auto_test # GITHUB_RUN_ID=10653731636 From eb531cf141d76719ae417e145b127611d724c673 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Fri, 25 Oct 2024 22:01:03 +0200 Subject: [PATCH 18/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 4348f69..a7e1d8d 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -180,7 +180,7 @@ jobs: authToken: ${{secrets.GITHUB_TOKEN}} context: 'Test report' state: 'success' - sha: ${{ github.event.pull_request.head.sha }} + sha: ${{ github.sha }} target_url: http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }} # GITHUB_REF_NAME=feature/auto_test From 9f13c9e0b3ca3a53944f63722453bab0737b1328 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 15:28:20 +0100 Subject: [PATCH 19/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index a7e1d8d..f29767e 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -80,6 +80,11 @@ jobs: ref: 'aws' token: ${{ secrets.UITESTREPOACCESS }} + - name: Clean all tests reports + run: | + rm -rf ${{ github.workspace }}/SDK-Auto-Test/target/allure-results || true + rm -rf ${{ github.workspace }}/SDK-Auto-Test/allure-report || true + - name: Set up JDK 17 uses: actions/setup-java@v4 with: From 399150ca51ee52e4ad121f75199a2cc10170132c Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 15:35:05 +0100 Subject: [PATCH 20/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index f29767e..776f508 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -1,6 +1,10 @@ name: UITest on SauceLabs on: + pull_request: + types: [ opened, edited, reopened, assigned, synchronize, ready_for_review ] + branches: + - '**' workflow_dispatch: inputs: device: From 03da226c245252d53c1a94a364a2d94e7c567dc6 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 15:50:02 +0100 Subject: [PATCH 21/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 776f508..552d685 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -184,7 +184,7 @@ jobs: - name: Post the link to the report if: always() - uses: Sibz/github-status-action@v1 + uses: guibranco/github-status-action-v2@latest with: authToken: ${{secrets.GITHUB_TOKEN}} context: 'Test report' From 75ff0d2cad0dfdb966c95df895cda97537c2db86 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 15:57:40 +0100 Subject: [PATCH 22/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 552d685..e0050ef 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -184,7 +184,7 @@ jobs: - name: Post the link to the report if: always() - uses: guibranco/github-status-action-v2@latest + uses: guibranco/github-status-action-v2@v1.1.13 with: authToken: ${{secrets.GITHUB_TOKEN}} context: 'Test report' From f7329f38a4ac3efcd25b74b04d40eaa0ad4f91df Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 16:05:49 +0100 Subject: [PATCH 23/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index e0050ef..ed7263c 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -133,6 +133,7 @@ jobs: echo "Launch: ${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY echo "Device: ${{ github.event.inputs.device }}" >> $GITHUB_STEP_SUMMARY echo "Build agent: ${{ github.event.inputs.runner }}" >> $GITHUB_STEP_SUMMARY + echo "Allure report link: http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY upload: name: upload allure to gp-pages From 992f02c37ea9627437caf1b61893dbf3176531d1 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 16:25:25 +0100 Subject: [PATCH 24/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index ed7263c..e57621e 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -124,6 +124,7 @@ jobs: if: always() run: | chmod +x ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar + jq '.base.reportLink = "http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }}"' config.json > temp.json && mv temp.json config.json || true java "-DconfigFile=${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json" -jar ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary From 9eb26f3a77792e82de58d6b5cc89ec3d27009ecd Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 16:33:11 +0100 Subject: [PATCH 25/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index e57621e..1a7896c 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -124,7 +124,7 @@ jobs: if: always() run: | chmod +x ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - jq '.base.reportLink = "http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }}"' config.json > temp.json && mv temp.json config.json || true + jq '.base.reportLink = "http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }}"' ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json > ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/temp.json && mv ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/temp.json ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json java "-DconfigFile=${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json" -jar ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar - name: Adding summary From 6a534af16d9db1bf160a0953b071d47a6bab5f06 Mon Sep 17 00:00:00 2001 From: johnlitvinov Date: Mon, 28 Oct 2024 16:43:32 +0100 Subject: [PATCH 26/26] yaml file for SauceLabs --- .github/workflows/uitests_saucelabs.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/uitests_saucelabs.yaml b/.github/workflows/uitests_saucelabs.yaml index 1a7896c..fb67db9 100644 --- a/.github/workflows/uitests_saucelabs.yaml +++ b/.github/workflows/uitests_saucelabs.yaml @@ -122,6 +122,7 @@ jobs: - name: notification to Slack if: always() + working-directory: ${{ github.workspace }}/SDK-Auto-Test run: | chmod +x ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/allure-notifications-4.8.0.jar jq '.base.reportLink = "http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }}"' ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json > ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/temp.json && mv ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/temp.json ${{ github.workspace }}/SDK-Auto-Test/allure_notifications/config.json @@ -193,14 +194,3 @@ jobs: state: 'success' sha: ${{ github.sha }} target_url: http://appodeal.github.io/appodeal-android-sdk/${{ github.run_number }} - -# GITHUB_REF_NAME=feature/auto_test -# GITHUB_RUN_ID=10653731636 -# GITHUB_REPOSITORY=appodeal/appodeal-android-sdk -# https://github.com/appodeal/appodeal-android-sdk/actions/runs/10653731636 -# GITHUB_TRIGGERING_ACTOR=johnlitvinov -# ${{ env.GITHUB_RUN_ID }} - -# -# mvn clean test -DtestEnv=${ENVIRONMENT} -P${SUITE} -Dmaven.repo.local=$MAVEN_LOCAL_REPO -Dstand=${STAND} -Dselenide.browser=${PLATFORM} -Dlocal_run=false -# mvn io.qameta.allure:allure-maven:report -Dmaven.repo.local=$MAVEN_LOCAL_REPO \ No newline at end of file