1
0
Fork 0
mirror of https://github.com/dorny/test-reporter.git synced 2026-03-21 23:52:12 +01:00

feat: removing parameter, generating slug prefix and providing it as an output

This commit is contained in:
Thomas Durand 2026-03-05 15:18:06 +01:00
parent 7f0723a953
commit 08dfe2715b
No known key found for this signature in database
GPG key ID: 68F13AD8CF49EEEB
4 changed files with 11 additions and 10 deletions

6
dist/index.js generated vendored
View file

@ -55383,6 +55383,8 @@ function getOctokit(token, options, ...additionalPlugins) {
return new GitHubWithPlugins(getOctokitOptions(token, options));
}
//# sourceMappingURL=github.js.map
// EXTERNAL MODULE: external "node:crypto"
var external_node_crypto_ = __nccwpck_require__(7598);
// EXTERNAL MODULE: ./node_modules/adm-zip/adm-zip.js
var adm_zip = __nccwpck_require__(1316);
// EXTERNAL MODULE: ./node_modules/picomatch/index.js
@ -57864,6 +57866,7 @@ class NetteTesterJunitParser {
async function main() {
try {
@ -57891,7 +57894,7 @@ class TestReporter {
workDirInput = getInput('working-directory', { required: false });
onlySummary = getInput('only-summary', { required: false }) === 'true';
useActionsSummary = getInput('use-actions-summary', { required: false }) === 'true';
slugPrefix = getInput('slug-prefix', { required: false });
slugPrefix = `tr-${(0,external_node_crypto_.randomBytes)(4).toString('base64url')}-`;
badgeTitle = getInput('badge-title', { required: false });
reportTitle = getInput('report-title', { required: false });
collapsed = getInput('collapsed', { required: false });
@ -57965,6 +57968,7 @@ class TestReporter {
setOutput('failed', failed);
setOutput('skipped', skipped);
setOutput('time', time);
setOutput('slug_prefix', this.slugPrefix);
if (this.failOnError && isFailed) {
setFailed(`Failed test were found and 'fail-on-error' option is set to ${this.failOnError}`);
return;