From 9b4bcd0770c6068f319440274a2f04d8e23ca6e4 Mon Sep 17 00:00:00 2001 From: ptchela Date: Sun, 9 Mar 2025 20:07:53 +0300 Subject: [PATCH] Update CI --- .github/workflows/selenium_test.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/selenium_test.yml b/.github/workflows/selenium_test.yml index d63bbec..6653fb3 100644 --- a/.github/workflows/selenium_test.yml +++ b/.github/workflows/selenium_test.yml @@ -38,15 +38,35 @@ jobs: run: mvn clean test - name: Upload Surefire Reports (for debugging) - if: failure() # Загружаем отчеты только в случае ошибки + if: failure() uses: actions/upload-artifact@v4 with: name: surefire-reports path: target/surefire-reports + - name: Load Allure test report history + uses: actions/checkout@v4 + if: success() || failure() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Prepare Allure history + run: | + mkdir -p target/allure-history + if [ -d gh-pages/allure-history ]; then + cp -r gh-pages/allure-history target/allure-history + fi + - name: Generate Allure Report run: mvn allure:report + - name: Save Allure history + run: | + mkdir -p target/site/allure-maven-plugin/allure-history + cp -r target/allure-history/* target/site/allure-maven-plugin/allure-history + - name: Upload Allure Report Artifact uses: actions/upload-artifact@v4 with: @@ -57,4 +77,5 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.EPOLIF_TOKEN }} + publish_branch: gh-pages publish_dir: target/site/allure-maven-plugin