clear branch

This commit is contained in:
shao.xiaoping 2024-01-29 17:20:34 +08:00
parent f22074b2ab
commit a01323c78f
1 changed files with 37 additions and 29 deletions

View File

@ -48,37 +48,45 @@ jobs:
- name: Run test cases - name: Run test cases
run: pipenv run python run.py run: pipenv run python run.py
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@v3
if: always()
with: with:
name: Test-allure-report name: playwright-traces_and_results
path: report # upload the latest report file path: |
retention-days: 20 report/
*trace.zip
- name: Get Allure history # Step to retrieve Allure history # - uses: actions/upload-artifact@master
uses: actions/checkout@v4 # with:
if: always() # Execute even if previous steps fail # name: Test-allure-report
continue-on-error: true # Continue execution even if the step fails # path: report # upload the latest report file
with: # retention-days: 20
ref: gh-pages # Specify the branch to retrieve Allure history from #
path: gh-pages # Set the destination path for Allure history # - name: Get Allure history # Step to retrieve Allure history
# uses: actions/checkout@v4
- name: Generate allure report action # Step to generate Allure report # if: always() # Execute even if previous steps fail
uses: simple-elf/allure-report-action@master # continue-on-error: true # Continue execution even if the step fails
if: always() # Execute even if previous steps fail # with:
id: allure-report # ref: gh-pages # Specify the branch to retrieve Allure history from
with: # path: gh-pages # Set the destination path for Allure history
allure_results: temp # Specify the directory containing Allure results #
allure_history: allure-history # Specify the directory to store Allure history # - name: Generate allure report action # Step to generate Allure report
allure_report: allure-report # uses: simple-elf/allure-report-action@master
keep_reports: 20 # Specify the number of previous reports to keep # if: always() # Execute even if previous steps fail
# id: allure-report
- name: Deploy Allure report to GitHub Pages # Step to deploy Allure report to GitHub Pages # with:
if: always() # Execute even if previous steps fail # allure_results: temp # Specify the directory containing Allure results
uses: peaceiris/actions-gh-pages@v3 # allure_history: allure-history # Specify the directory to store Allure history
with: # allure_report: allure-report
github_token: ${{ secrets.GITHUB_TOKEN }} # Provide the GitHub token for authentication # keep_reports: 20 # Specify the number of previous reports to keep
publish_branch: gh-pages # Specify the branch to publish the report to #
publish_dir: allure-history # Specify the directory containing the report # - name: Deploy Allure report to GitHub Pages # Step to deploy Allure report to GitHub Pages
# if: always() # Execute even if previous steps fail
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }} # Provide the GitHub token for authentication
# publish_branch: gh-pages # Specify the branch to publish the report to
# publish_dir: allure-history # Specify the directory containing the report