Skip to content

Commit 1c12f8a

Browse files
committed
ci(playwright): add merge config
This allows to merge reports if one report is from a self-hosted runner and another is from a github runner. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 2980749 commit 1c12f8a

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
merge-multiple: true
9393

9494
- name: Merge into HTML Report
95-
run: npx playwright merge-reports --reporter html ./all-blob-reports
95+
run: npx playwright merge-reports --config tests/playwright/merge.config.ts ./all-blob-reports
9696

9797
- name: Upload HTML report
9898
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0

tests/playwright/merge.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*!
2+
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
6+
// Needed to merge multiple Playwright reports
7+
// when they are ran on self-hosted and github runners (different test directories are used)
8+
export default {
9+
testDir: 'tests/playwright/e2e',
10+
reporter: [['html', { open: 'never' }]],
11+
}

0 commit comments

Comments
 (0)