Skip to content

Commit c3e77ee

Browse files
committed
update as per common-utils change
1 parent 5e23adc commit c3e77ee

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/bat.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,10 @@ jobs:
107107
plan.DefaultTasks = "preMadeTest";
108108
end
109109
_EOF
110-
- name: Run command with buildtool pre-made test task and verify summary generation
110+
- name: Run command with buildtool pre-made test task
111111
uses: ./
112112
with:
113-
command: >
114-
buildtool preMadeTest;
115-
assert(contains(fileread(getenv('GITHUB_STEP_SUMMARY')), 'MATLAB Build Results'));
116-
assert(contains(fileread(getenv('GITHUB_STEP_SUMMARY')), 'MATLAB Test Results'));
113+
command: buildtool preMadeTest
117114
- name: Verify environment variables make it to MATLAB
118115
uses: ./
119116
with:

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as core from "@actions/core";
44
import * as exec from "@actions/exec";
55
// TODO: update common-utils version when new version is released
66
import { matlab, testResultsSummary, buildSummary } from "common-utils";
7-
import * as path from "path";
87

98
/**
109
* Gather action inputs and then run action.
@@ -14,8 +13,7 @@ async function run() {
1413
const architecture = process.arch;
1514
const workspaceDir = process.cwd();
1615

17-
const pluginsPath = path.join(__dirname, "plugins").replaceAll("'","''");
18-
const command = "addpath('"+ pluginsPath +"'); " + core.getInput("command");
16+
const command = core.getInput("command");
1917
const startupOpts = core.getInput("startup-options").split(" ");
2018

2119
const helperScript = await matlab.generateScript(workspaceDir, command);

0 commit comments

Comments
 (0)