Skip to content

Commit 5302a94

Browse files
astandrikAnton Standrik
andauthored
fix: dont remove previous tests reports (#1630)
Co-authored-by: Anton Standrik <[email protected]>
1 parent fb007a7 commit 5302a94

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,21 +197,29 @@ jobs:
197197
steps:
198198
- uses: actions/checkout@v4
199199

200-
- name: Download artifacts
200+
- name: Fetch gh-pages branch
201+
run: |
202+
git fetch origin gh-pages:gh-pages
203+
mkdir gh-pages
204+
git --work-tree=gh-pages checkout gh-pages -- .
205+
206+
- name: Download Playwright artifacts
201207
uses: actions/download-artifact@v3
202208
with:
203209
name: playwright-artifacts
204210
path: playwright-artifacts
205211

206-
- name: Setup Pages
207-
uses: actions/configure-pages@v3
212+
- name: Copy new report
213+
run: |
214+
mkdir -p gh-pages/${{ github.event.pull_request.number }}
215+
cp -r playwright-artifacts/playwright-report/* gh-pages/${{ github.event.pull_request.number }}/
208216
209217
- name: Deploy report to GitHub Pages
210218
uses: peaceiris/actions-gh-pages@v3
211219
with:
212220
github_token: ${{ secrets.GITHUB_TOKEN }}
213-
publish_dir: ./playwright-artifacts/playwright-report
214-
destination_dir: ${{ github.event.pull_request.number }}
221+
publish_dir: gh-pages
222+
destination_dir: .
215223
force_orphan: true
216224

217225
- name: Update PR description

0 commit comments

Comments
 (0)