Skip to content

Commit 0d63cbd

Browse files
committed
fix codescan issue and add help icon
1 parent 7c10b22 commit 0d63cbd

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function run() {
3232

3333
// Once new scriptgen version is live, line 34-44 will be updated before release
3434
// const command = scriptgen.generateCommand(options);
35-
const pluginsPath = path.join(__dirname, "plugins").replace("'","''");
35+
const pluginsPath = path.join(__dirname, "plugins").relpaceAll("'","''");
3636
const command = "addpath('"+ pluginsPath +"');" +
3737
"import matlab.unittest.TestRunner;" +
3838
"addpath(genpath('sample'));" +

src/testResultsSummary.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ interface TestResultsData {
4747

4848
export function writeSummary(testResults: MatlabTestFile[][], stats: TestStatistics) {
4949
try {
50+
const helpLink = `<a href="https://github.com/matlab-actions/run-tests/blob/main/README.md"` +
51+
`target="_blank" title="View documentation">ℹ️</a>`;
5052
const header = getTestHeader(testResults, stats);
5153
const detailedResults = getDetailedResults(testResults);
5254

5355
core.summary
54-
.addHeading('MATLAB Test Results (' + process.env.GITHUB_ACTION + ')')
56+
.addHeading('MATLAB Test Results (' + process.env.GITHUB_ACTION + ') ' + helpLink)
5557
.addRaw(header, true)
5658
.addHeading('All tests', 3)
5759
.addRaw(detailedResults, true)

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "ES6",
3+
"target": "ES2022",
44
"module": "CommonJS",
55
"declaration": true,
66
"sourceMap": true,

0 commit comments

Comments
 (0)