Fix Playwright github reporter to run in the pull_request context once more (#12509)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/28217/head
parent
eee0b2a9c3
commit
c6f6f1d2a2
|
@ -41,7 +41,7 @@ jobs:
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Merge into HTML Report
|
- name: Merge into HTML Report
|
||||||
run: yarn playwright merge-reports --reporter=html,github,./playwright/flaky-reporter.ts ./all-blob-reports
|
run: yarn playwright merge-reports --reporter=html,./playwright/flaky-reporter.ts ./all-blob-reports
|
||||||
env:
|
env:
|
||||||
# Only pass creds to the flaky-reporter on main branch runs
|
# Only pass creds to the flaky-reporter on main branch runs
|
||||||
GITHUB_TOKEN: ${{ github.event.workflow_run.head_branch == 'develop' && secrets.ELEMENT_BOT_TOKEN || '' }}
|
GITHUB_TOKEN: ${{ github.event.workflow_run.head_branch == 'develop' && secrets.ELEMENT_BOT_TOKEN || '' }}
|
||||||
|
|
|
@ -41,7 +41,7 @@ export default defineConfig<TestOptions>({
|
||||||
outputDir: "playwright/test-results",
|
outputDir: "playwright/test-results",
|
||||||
workers: 1,
|
workers: 1,
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
reporter: process.env.CI ? "blob" : [["html", { outputFolder: "playwright/html-report" }]],
|
reporter: process.env.CI ? [["blob"], ["github"]] : [["html", { outputFolder: "playwright/html-report" }]],
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
name: "Legacy Crypto",
|
name: "Legacy Crypto",
|
||||||
|
|
Loading…
Reference in New Issue