@@ -4,7 +4,7 @@ name: Playwright Tests
44on :
55 push :
66 branches :
7- - ' **' # Run on pushes to main
7+ - ' **' # Run on every branch for every commit
88 pull_request :
99 branches :
1010 - ' **' # Run on every pull request for any branch
@@ -59,41 +59,17 @@ jobs:
5959 - name : Run Playwright Tests
6060 run : mvn verify
6161
62- # Step 5: Zip the Allure Report
63- - name : Zip Allure Report
64- if : always()
65- run : |
66- zip -r allure-report.zip target/site/allure-maven-plugin
62+ # # Step 7: Archive ZIP files in the root directory
63+ # - name: Archive ZIP files
64+ # if: always() # Ensure this step runs even if previous steps fail
65+ # uses: actions/upload-artifact@v4
66+ # with:
67+ # name: zip-archives
68+ # path: 'target/*.zip'
6769
68- # Step 6: Upload ZIP Artifact
69- - name : Upload Allure Report ZIP
70- if : always()
71- uses : actions/upload-artifact@v4
72- with :
73- name : allure-report
74- path : allure-report.zip
75-
76- reporting :
77- runs-on : ubuntu-latest
78- needs : test
79- if : always()
80- steps :
81- # Step 1: Download Allure Report ZIP
82- - name : Download Allure Report ZIP
83- uses : actions/download-artifact@v4
84- with :
85- name : allure-report
86-
87- # Step 2: Unzip the Allure Report
88- - name : Unzip Allure Report
89- if : always()
90- run : |
91- mkdir -p target/site/
92- unzip allure-report.zip -d target/site/
93-
94- # Step 3: Deploy Allure Report to GitHub Pages
70+ # Step 8: Deploy Allure report to GitHub Pages
9571 - name : Deploy Allure Report to GitHub Pages
96- if : always()
72+ if : always() # Ensure this step runs even if tests fail
9773 uses : peaceiris/actions-gh-pages@v3
9874 with :
9975 github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments