Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/selenium_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Loading