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

This commit is contained in:
Max Schmitt 2023-06-01 00:29:57 +02:00 committed by GitHub
parent 2c700b71ff
commit 40581ed906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -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

View File

@ -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