File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,23 @@ jobs:
9494 [~, f] = fileparts(pwd);
9595 assert(strcmp(f, 'subdir'));
9696 startup-options : -sd subdir
97- - name : Run command with testrunner to generate test summary
97+ - name : Create buildfile.m in project root for build and test summary
98+ shell : bash
99+ run : |
100+ cat <<'_EOF' >> "buildfile.m"
101+ function plan = buildfile
102+ import matlab.buildtool.tasks.TestTask
103+
104+ plan = buildplan(localfunctions);
105+ plan("preMadeTest") = TestTask;
106+
107+ plan.DefaultTasks = "preMadeTest";
108+ end
109+ _EOF
110+ - name : Run command with buildtool pre-made test task
98111 uses : ./
99112 with :
100- command : >
101- runner = testrunner();
102- suite = testsuite(pwd, 'IncludeSubfolders', true);
103- result = run(runner, suite);
113+ command : buildtool preMadeTest
104114 - name : Verify environment variables make it to MATLAB
105115 uses : ./
106116 with :
You can’t perform that action at this time.
0 commit comments