Skip to content

Commit c9b161c

Browse files
committed
Update CI
1 parent 5281bd0 commit c9b161c

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/selenium_test.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,38 @@ jobs:
3737
- name: Run Maven tests
3838
run: mvn clean test
3939

40-
- name: Upload Surefire Reports (for debugging)
41-
if: failure() # Загружаем отчеты только в случае ошибки
40+
- name: Upload Surefire Reports
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+
if [ -d target/allure-history ]; then
69+
cp -r target/allure-history/* target/site/allure-maven-plugin/allure-history
70+
fi
71+
5072
- name: Upload Allure Report Artifact
5173
uses: actions/upload-artifact@v4
5274
with:
@@ -57,4 +79,5 @@ jobs:
5779
uses: peaceiris/actions-gh-pages@v3
5880
with:
5981
github_token: ${{ secrets.EPOLIF_TOKEN }}
82+
publish_branch: gh-pages
6083
publish_dir: target/site/allure-maven-plugin

0 commit comments

Comments
 (0)