Doubao-powered voice input for Linux, Wayland and Omarchy
fix(workflow): publish report tables for pull requests
quanru4f85c091833a
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.ymlindex 1512993..6cf295c 100644--- a/.github/workflows/midscene-omarchy-4.0.3.yml+++ b/.github/workflows/midscene-omarchy-4.0.3.yml@@ -199,8 +199,8 @@ jobs:if: >-always() &&needs.report-bundle.outputs.report-artifact-id != '' &&- github.event_name != 'pull_request' &&- github.ref_name == vars.PAGES_REPORT_BRANCH+ (github.event_name != 'pull_request' ||+ github.event.pull_request.head.repo.full_name == github.repository)permissions:actions: readcontents: readdiff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.ymlindex 276f4cb..3964d83 100644--- a/.github/workflows/midscene-ubuntu-22.04.yml+++ b/.github/workflows/midscene-ubuntu-22.04.yml@@ -190,8 +190,8 @@ jobs:if: >-always() &&needs.report-bundle.outputs.report-artifact-id != '' &&- github.event_name != 'pull_request' &&- github.ref_name == vars.PAGES_REPORT_BRANCH+ (github.event_name != 'pull_request' ||+ github.event.pull_request.head.repo.full_name == github.repository)permissions:actions: readcontents: readdiff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjsindex 177ae3d..86841ee 100644--- a/tests/contracts/test_pages_report_history.mjs+++ b/tests/contracts/test_pages_report_history.mjs@@ -14,6 +14,29 @@ import { reportCases } from '../../scripts/report-cases.mjs';import { renderReportSummary } from '../../scripts/render-ci-report-summary.mjs';import { verifyPublishedReport } from '../../scripts/verify-pages-report.mjs';+test('publishes the Markdown evidence table for same-repository pull requests', async () => {+ for (const workflow of [+ 'midscene-ubuntu-22.04.yml',+ 'midscene-omarchy-4.0.3.yml',+ ]) {+ const source = await readFile(+ new URL(`../../.github/workflows/${workflow}`, import.meta.url),+ 'utf8',+ );+ const pagesJob = source.slice(source.indexOf(' pages-report:'));+ assert.match(+ pagesJob,+ /github\.event\.pull_request\.head\.repo\.full_name == github\.repository/,+ `${workflow} must publish its report and Summary table for trusted PRs`,+ );+ assert.doesNotMatch(+ pagesJob,+ /github\.ref_name == vars\.PAGES_REPORT_BRANCH/,+ `${workflow} must not suppress the PR Summary table behind a branch check`,+ );+ }+});+test('assigns every product case to exactly one balanced shard', async () => {const shardCounts = new Map();let caseCount = 0;