Skip to content

Commit

Permalink
ci: update path allure
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhikharevAl committed Aug 10, 2024
1 parent c059f83 commit 9307377
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/playwright_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,38 @@ jobs:
- name: Generate Allure Report
run: ./gradlew allureReport

- uses: actions/upload-artifact@master
- name: Upload Allure Results
uses: actions/upload-artifact@v4
with:
name: allure-results
path: allure-results
path: build/allure-results
retention-days: 20

- name: Get Allure history
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Copy Allure history
if: always()
run: |
mkdir -p build/allure-results/history
cp -R gh-pages/allure-history/* build/allure-results/history || true
- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@v1.9
if: always()
with:
allure_results: allure-results
allure_history: allure-history
allure_results: build/allure-results
allure_history: gh-pages/allure-history
keep_reports: 20

- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.PLAYWRIGHT_TOKEN}}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history

uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PLAYWRIGHT_TOKEN }}
publish_branch: gh-pages
publish_dir: gh-pages/allure-history

0 comments on commit 9307377

Please sign in to comment.