Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: post merged test results comment as GitHub Status Check (#23409)

Max Schmitt40581ed9065b
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index 2f2a127dc3..56b4eafb71 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -120,6 +120,22 @@ jobs:
});
core.info('Posted comment: ' + response.html_url);
+ const { owner, repo } = context.repo;
+
+ const check = await github.rest.checks.create({
+ owner,
+ repo,
+ name: 'Primary Tests',
+ head_sha: context.sha,
+ status: 'completed',
+ conclusion: 'success',
+ details_url: reportUrl,
+ output: {
+ title: 'Merged Primary test results',
+ summary: 'Primary test results: ' + reportUrl,
+ }
+ });
+
test_linux_chromium_tot:
name: ${{ matrix.os }} (chromium tip-of-tree)
strategy:
@@ -249,6 +265,22 @@ jobs:
});
core.info('Posted comment: ' + response.html_url);
+ const { owner, repo } = context.repo;
+
+ const check = await github.rest.checks.create({
+ owner,
+ repo,
+ name: 'Test Runner Tests',
+ head_sha: context.sha,
+ status: 'completed',
+ conclusion: 'success',
+ details_url: reportUrl,
+ output: {
+ title: 'Merged Test Runner Results',
+ summary: 'Test Runner test results: ' + reportUrl,
+ }
+ });
+
test_web_components:
name: Web Components
runs-on: ubuntu-latest
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index a59737abe9..cfe54c9532 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -267,6 +267,22 @@ jobs:
});
core.info('Posted comment: ' + response.html_url);
+ const { owner, repo } = context.repo;
+
+ const check = await github.rest.checks.create({
+ owner,
+ repo,
+ name: 'Tracing Tests',
+ head_sha: context.sha,
+ status: 'completed',
+ conclusion: 'success',
+ details_url: reportUrl,
+ output: {
+ title: 'Merged Tracing test results',
+ summary: 'Tracing test results: ' + reportUrl,
+ }
+ });
+
chrome_stable_linux:
name: "Chrome Stable (Linux)"
runs-on: ubuntu-20.04