Skip to content

Commit

Permalink
allure history
Browse files Browse the repository at this point in the history
  • Loading branch information
crlinm committed Dec 6, 2023
1 parent 71c1576 commit 9eafa0b
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@ jobs:
if: always()
with:
ref: gh-pages
path: ./.github/gh-pages
path: gh-pages


- name: Copy history from gh-pages to allure-results
if: always()
run: |
sudo mkdir -p allure-results/history
sudo cp -R ./.github/gh-pages/history/* allure-results/history/
sudo mkdir -p allure-results/history gh-pages/history
sudo cp -R gh-pages/history/* allure-results/history/
- name: Generate Allure report
if: always()
run: |
sudo docker-compose run regression /bin/sh -c "allure generate allure-results --clean -o allure-report"
- name: Update Allure history
if: always()
run: |
sudo cp -R allure-report/history/* ./.github/gh-pages/history/
# - name: Update Allure history
# if: always()
# run: |
# sudo cp -R allure-report/history/* gh-pages/history/

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
Expand All @@ -75,5 +75,17 @@ jobs:
token: ${{ secrets.CI_TOKEN }}
branch: gh-pages
folder: allure-report
history dir: allure-history
#clean: true
# history dir: allure-history
#clean: true




# Make sure you have the previous report generated in the allure-report directory.
# Remove the allure-results directory.
# Run the tests.
# Copy the allure-report/history subdirectory to allure-results/history.
# Generate the new report.
# If you follow such a routine regularly,
# Allure will each time keep data from up to 20 latest reports in allure-results/history.
# This creates up to 20 history entries for each test and up to 20 columns in each graph.

0 comments on commit 9eafa0b

Please sign in to comment.