Skip to content

Commit

Permalink
chore: ansi to html 포매팅 형식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gihwan-dev committed Jul 29, 2024
1 parent 7c87786 commit 3412e2f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/install-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
issue_number: context.payload.pull_request.number,
});
const Convert = require('ansi-up');
const Convert = require('ansi-to-html');
const convert = new Convert();
const body = `
<h2>Build Failed</h2>
${convert.ansi_to_html(build)}
<pre>${convert.toHtml(build)}</pre>
`;
const existingComment = comments.find(comment => comment.body.includes('Build Failed'));
Expand Down Expand Up @@ -100,12 +100,12 @@ jobs:
issue_number: context.payload.pull_request.number,
});
const Convert = require('ansi-up');
const Convert = require('ansi-to-html');
const convert = new Convert();
const body = `
<h2>Test Failed</h2>
${convert.ansi_to_html(test)}
<pre>${convert.toHtml(test)}</pre>
`;
const existingComment = comments.find(comment => comment.body.includes('Test Failed'));
Expand Down Expand Up @@ -144,12 +144,12 @@ jobs:
issue_number: context.payload.pull_request.number,
});
const Convert = require('ansi-up');
const Convert = require('ansi-to-html');
const convert = new Convert();
const body = `
<h2>Test Coverage</h2>
${convert.ansi_to_html(coverage)}
<pre>${convert.toHtml(coverage)}</pre>
`;
const existingComment = comments.find(comment => comment.body.includes('Test Coverage'));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@typescript-eslint/parser": "^7.13.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitest/coverage-v8": "^2.0.4",
"ansi_up": "^6.0.2",
"ansi-to-html": "^0.7.2",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
21 changes: 15 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3412e2f

Please sign in to comment.