Skip to content

Commit 455193b

Browse files
authored
Update CI (#22)
1 parent 5281bd0 commit 455193b

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/selenium_test.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,35 @@ jobs:
3838
run: mvn clean test
3939

4040
- name: Upload Surefire Reports (for debugging)
41-
if: failure() # Загружаем отчеты только в случае ошибки
41+
if: failure()
4242
uses: actions/upload-artifact@v4
4343
with:
4444
name: surefire-reports
4545
path: target/surefire-reports
4646

47+
- name: Load Allure test report history
48+
uses: actions/checkout@v4
49+
if: success() || failure()
50+
continue-on-error: true
51+
with:
52+
ref: gh-pages
53+
path: gh-pages
54+
55+
- name: Prepare Allure history
56+
run: |
57+
mkdir -p target/allure-history
58+
if [ -d gh-pages/allure-history ]; then
59+
cp -r gh-pages/allure-history target/allure-history
60+
fi
61+
4762
- name: Generate Allure Report
4863
run: mvn allure:report
4964

65+
- name: Save Allure history
66+
run: |
67+
mkdir -p target/site/allure-maven-plugin/allure-history
68+
cp -r target/allure-history/* target/site/allure-maven-plugin/allure-history
69+
5070
- name: Upload Allure Report Artifact
5171
uses: actions/upload-artifact@v4
5272
with:
@@ -57,4 +77,5 @@ jobs:
5777
uses: peaceiris/actions-gh-pages@v3
5878
with:
5979
github_token: ${{ secrets.EPOLIF_TOKEN }}
80+
publish_branch: gh-pages
6081
publish_dir: target/site/allure-maven-plugin

0 commit comments

Comments
 (0)