Skip to content

Commit

Permalink
switch to github actions summary reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Nov 10, 2024
1 parent f561029 commit dc86f0e
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.14.0",
"@estruyf/github-actions-reporter": "^1.9.2",
"@fastify/static": "^8.0.2",
"@mercuryworkshop/bare-as-module3": "^2.2.5",
"@mercuryworkshop/epoxy-transport": "^2.1.26",
Expand Down
14 changes: 13 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig, devices } from "@playwright/test";
import type { GitHubActionOptions } from "@estruyf/github-actions-reporter";

/**
* See https://playwright.dev/docs/test-configuration.
Expand All @@ -8,7 +9,18 @@ export default defineConfig({
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: 2,
reporter: process.env.CI ? "github" : "html",
reporter: process.env.CI
? [
[
"@estruyf/github-actions-reporter",
<GitHubActionOptions>{
title: "My custom title",
useDetails: true,
showError: true,
},
],
]
: "html",
timeout: 20000,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
Expand Down
84 changes: 84 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc86f0e

Please sign in to comment.