Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

feat: enable github reporter

lawvsad3e18cb1aa4
diff --git a/playwright.config.ts b/playwright.config.ts
index a8aa070449..1c1ff81bc1 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -39,6 +39,11 @@ const config: PlaywrightTestConfig = {
COVERAGE: process.env.COVERAGE || 'false',
},
},
+
+ // 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
+ // default 'list' when running locally
+ // See https://playwright.dev/docs/test-reporters#github-actions-annotations
+ reporter: process.env.CI ? 'github' : 'list',
};
export default config;
diff --git a/playwright.config.unit.ts b/playwright.config.unit.ts
index 7a5651b631..69150b1426 100644
--- a/playwright.config.unit.ts
+++ b/playwright.config.unit.ts
@@ -23,6 +23,11 @@ const config: PlaywrightTestConfig = {
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
+
+ // 'github' for GitHub Actions CI to generate annotations, plus a concise 'dot'
+ // default 'list' when running locally
+ // See https://playwright.dev/docs/test-reporters#github-actions-annotations
+ reporter: process.env.CI ? 'github' : 'list',
};
export default config;