Skip to content

Commit

Permalink
try adding missing values
Browse files Browse the repository at this point in the history
  • Loading branch information
atlowChemi committed Feb 27, 2023
1 parent 634828e commit e830e45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ export async function run(): Promise<void> {
await annotateTestResult(testResult, inputs.token, headSha, inputs.updateCheck, inputs.jobName);
}
} catch (error) {
core.error(`❌ Failed to create checks using the provided token. (${error})`);
core.warning(`⚠️ This usually indicates insufficient permissions. More details: https://github.com/mikepenz/action-junit-report/issues/23`);
core.error(`❌ Failed creating a check using the provided token. (${error})`);
core.warning(
`⚠️ This usually indicates insufficient permissions. More details: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token`,
);
}

const supportsJobSummary = process.env['GITHUB_STEP_SUMMARY'];
Expand Down
6 changes: 6 additions & 0 deletions src/junitParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export interface Annotation {
message: string;
resultLink: string;
classname: string;
end_line: string;
path: string;
start_line: string;
}

interface JUnitTestCase {
Expand Down Expand Up @@ -86,6 +89,9 @@ async function parseSuite({ testsuites: { testsuite } = {} }: Partial<JUnitRepor
message: escapeEmoji((failure?.message || name).trim()),
classname: escapeEmoji(classname),
resultLink: systemOut,
end_line: '',
path: '',
start_line: '',
});
}
return result;
Expand Down

0 comments on commit e830e45

Please sign in to comment.