Skip to content

Commit 590eeea

Browse files
committed
add step to save history off allure report run
1 parent e611757 commit 590eeea

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/github_actions_tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
echo "BASE_URL_FE=${BASE_URL_FE}" > .env
5252
echo "BASE_URL_API=${BASE_URL_API}" > .env
5353
54+
- name: Download previous Allure report
55+
run: |
56+
git config --global user.email "github-actions@users.noreply.github.com"
57+
git config --global user.name "GitHub Actions"
58+
git clone --depth=1 --branch gh-pages https://github.com/${{ github.repository }} gh-pages || exit 0
59+
mkdir -p allure-results/history
60+
cp -R gh-pages/history allure-results/ || echo "No previous history"
5461
5562
- name: Run tests(UI & API) with Pytest
5663
run: |
@@ -65,5 +72,7 @@ jobs:
6572
uses: peaceiris/actions-gh-pages@v3
6673
with:
6774
github_token: ${{ secrets.GH_PAGES_ALLURE }}
75+
publish_branch: gh_pages
6876
publish_dir: ./allure-report
77+
6978

0 commit comments

Comments
 (0)