1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-02-04 13:37:56 +01:00

Update multiple packages and configs

This commit is contained in:
Michal Dorner 2022-08-19 23:37:14 +02:00
parent 81fcbf17a9
commit 57e5862411
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
8 changed files with 5212 additions and 14306 deletions

View file

@ -155,7 +155,7 @@ class TestReporter {
}
core.info(`Creating check run ${name}`)
const createResp = await this.octokit.checks.create({
const createResp = await this.octokit.rest.checks.create({
head_sha: this.context.sha,
name,
status: 'in_progress',
@ -168,7 +168,7 @@ class TestReporter {
core.info('Creating report summary')
const {listSuites, listTests, onlySummary} = this
const baseUrl = createResp.data.html_url
const baseUrl = createResp.data.html_url as string
const summary = getReport(results, {listSuites, listTests, baseUrl, onlySummary})
core.info('Creating annotations')
@ -179,7 +179,7 @@ class TestReporter {
const icon = isFailed ? Icon.fail : Icon.success
core.info(`Updating check run conclusion (${conclusion}) and output`)
const resp = await this.octokit.checks.update({
const resp = await this.octokit.rest.checks.update({
check_run_id: createResp.data.id,
conclusion,
status: 'completed',