From 755ea2a080ad014b45c4aac9e9c895da06c36737 Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Fri, 15 Mar 2024 14:39:00 +0500 Subject: [PATCH 1/3] actions/upload-artifact@ version updated --- .github/workflows/android_workflow.yml | 4 ++-- .github/workflows/api_workflow.yml | 4 ++-- .github/workflows/ios_workflow.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android_workflow.yml b/.github/workflows/android_workflow.yml index a7c3476f..0f1d3e31 100644 --- a/.github/workflows/android_workflow.yml +++ b/.github/workflows/android_workflow.yml @@ -73,7 +73,7 @@ jobs: if: ${{ always() }} - name: Upload HTML run report in the Artifacts Folder - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.html_report }} path: | @@ -150,7 +150,7 @@ jobs: if: ${{ always() }} - name: Upload HTML run report in the Artifacts Folder - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pytest-results path: | diff --git a/.github/workflows/api_workflow.yml b/.github/workflows/api_workflow.yml index 7a6d5941..af4f5115 100644 --- a/.github/workflows/api_workflow.yml +++ b/.github/workflows/api_workflow.yml @@ -56,7 +56,7 @@ jobs: # Upload html results as GH artifact - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pytest-results path: | @@ -103,7 +103,7 @@ jobs: # Upload html results as GH artifact - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pytest-results path: | diff --git a/.github/workflows/ios_workflow.yml b/.github/workflows/ios_workflow.yml index 2c9607a5..4969fa02 100644 --- a/.github/workflows/ios_workflow.yml +++ b/.github/workflows/ios_workflow.yml @@ -74,7 +74,7 @@ jobs: if: ${{ always() }} - name: Upload HTML run report in the Artifacts Folder - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.html_report }} path: | @@ -152,7 +152,7 @@ jobs: if: ${{ always() }} - name: Upload HTML run report in the Artifacts Folder - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pytest-results path: | From f3bf1289c745856ba1e96eb56267c83eefa4c28d Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Fri, 15 Mar 2024 15:57:41 +0500 Subject: [PATCH 2/3] allure report pages setup --- .github/workflows/api_workflow.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/api_workflow.yml b/.github/workflows/api_workflow.yml index af4f5115..70240b30 100644 --- a/.github/workflows/api_workflow.yml +++ b/.github/workflows/api_workflow.yml @@ -100,6 +100,31 @@ jobs: --gherkin-terminal-reporter \ --tags="$TAGS" \ --html=report.html \ + --alluredir=allure-results + + - name: Get Allure history + uses: actions/checkout@v4 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Allure Report + uses: simple-elf/allure-report-action@v1.7 + if: always() + with: + gh_pages: gh-pages + allure_results: allure-results + allure_history: allure-history + + - name: Deploy report to Github Pages + if: always() + uses: peaceiris/actions-gh-pages@v3 + env: + PERSONAL_TOKEN: ${{ secrets.PYTEST_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: allure-history # Upload html results as GH artifact - name: Upload pytest test results From 5304beb6ec8495ed0437097c6616402be53dcfdc Mon Sep 17 00:00:00 2001 From: tauqirsarwar1 Date: Fri, 15 Mar 2024 16:04:23 +0500 Subject: [PATCH 3/3] allure report pages setup --- .github/workflows/api_workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/api_workflow.yml b/.github/workflows/api_workflow.yml index 70240b30..9afc5949 100644 --- a/.github/workflows/api_workflow.yml +++ b/.github/workflows/api_workflow.yml @@ -121,7 +121,7 @@ jobs: - name: Deploy report to Github Pages if: always() uses: peaceiris/actions-gh-pages@v3 - env: + with: PERSONAL_TOKEN: ${{ secrets.PYTEST_TOKEN }} PUBLISH_BRANCH: gh-pages PUBLISH_DIR: allure-history