Skip to content

Commit 8b70ddc

Browse files
committed
update bat.yml
1 parent 0385688 commit 8b70ddc

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/bat.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)