Skip to content

Commit c87bc41

Browse files
committed
Fix GitHub Issue #214
1 parent e0e796f commit c87bc41

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

dist/index.js

+5-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/results-check.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ const ResultsCheck = {
7676
const pullRequest = github.context.payload.pull_request;
7777
const headSha = (pullRequest && pullRequest.head.sha) || github.context.sha;
7878

79+
// Check max length for https://github.com/game-ci/unity-test-runner/issues/214
7980
const maxLength = 65_534;
80-
if (output.length > maxLength) {
81-
core.warning(`Output too long (${output.length}) truncating to ${maxLength}`);
82-
output = output.slice(0, maxLength);
81+
if (output.text.length > maxLength) {
82+
core.warning(`Test details of ${output.text.length} surpass limit of ${maxLength}`);
83+
output.text =
84+
'Test details omitted from GitHub UI due to length. See console logs for details.';
8385
}
8486

8587
core.info(`Posting results for ${headSha}`);

0 commit comments

Comments
 (0)