Skip to content

Commit 9ce10bb

Browse files
committed
update as per common-utils update
1 parent ed72862 commit 9ce10bb

7 files changed

Lines changed: 55 additions & 75 deletions

File tree

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package-lock.json

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/+matlab/+unittest/+internal/+services/+plugins/GitHubLogPluginService.m

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
classdef GitHubLogTestPluginService < matlab.buildtool.internal.services.ciplugins.CITestRunnerPluginService
2+
% Copyright 2025 The MathWorks, Inc.
3+
4+
methods
5+
function plugins = providePlugins(~, ~)
6+
plugins = testframework.GitHubLogTestPlugin();
7+
end
8+
end
9+
end

plugins/+testframework/GitHubLogPlugin.m renamed to plugins/+testframework/GitHubLogTestPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef GitHubLogPlugin < matlab.unittest.plugins.TestRunnerPlugin
1+
classdef GitHubLogTestPlugin < matlab.unittest.plugins.TestRunnerPlugin
22
% Copyright 2025 The MathWorks, Inc.
33

44
methods (Access=protected)

sample/tVerificationAndAssertionFailure.m

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as exec from "@actions/exec";
55
import * as scriptgen from "./scriptgen";
66
// TODO: update common-utils version when new version is released
77
import { matlab, testResultsSummary } from "common-utils";
8-
import * as path from "path";
98

109
/**
1110
* Gather action inputs and then run action
@@ -33,8 +32,7 @@ async function run() {
3332
LoggingLevel: core.getInput("logging-level"),
3433
};
3534

36-
const pluginsPath = path.join(__dirname, "plugins").replaceAll("'","''");
37-
const command = "addpath('"+ pluginsPath +"'); " + scriptgen.generateCommand(options);
35+
const command = scriptgen.generateCommand(options);
3836
const startupOptions = core.getInput("startup-options").split(" ");
3937

4038
const helperScript = await matlab.generateScript(workspaceDir, command);
@@ -44,11 +42,9 @@ async function run() {
4442
const runnerTemp = process.env.RUNNER_TEMP || '';
4543
const runId = process.env.GITHUB_RUN_ID || '';
4644
const actionName = process.env.GITHUB_ACTION || '';
47-
48-
const testResultsData = testResultsSummary.getTestResults(runnerTemp, runId, workspaceDir);
49-
if(testResultsData) {
50-
testResultsSummary.writeSummary(testResultsData, actionName);
51-
}
45+
46+
testResultsSummary.processAndAddTestSummary(runnerTemp, runId, actionName, workspaceDir);
47+
core.summary.write();
5248
});
5349
}
5450

0 commit comments

Comments
 (0)