File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
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
You can’t perform that action at this time.
0 commit comments