Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ jobs:
permissions:
contents: read
actions: write
pull-requests: write # Needed for commenting coverage reports on PRs

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -268,10 +269,11 @@ jobs:
run: npx playwright install-deps chromium

- name: Run tests
run: npx playwright test
run: PLAYWRIGHT_JSON_OUTPUT_NAME=results.json npx playwright test
timeout-minutes: 20
env:
TZ: Europe/Berlin
continue-on-error: true

- uses: actions/upload-artifact@v5
if: ${{ !cancelled() }}
Expand All @@ -280,6 +282,14 @@ jobs:
path: playwright-report/
retention-days: 14

- uses: daun/playwright-report-summary@v3
if: github.event_name == 'pull_request'
continue-on-error: true
with:
report-file: results.json
create-comment: true
job-summary: true

code_coverage:
name: "Code coverage report"
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig({
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 4 : 0,
timeout: 60000, // 60s
reporter: [[process.env.CI ? "github" : "list"], ["html", { open: "never" }]],
reporter: [[process.env.CI ? "github" : "list"], ["json"], ["html", {open: "never"}]],
use: {
baseURL: "http://127.0.0.1:7070",
trace: "on-first-retry",
Expand Down
Loading