Skip to content

Commit

Permalink
update buildfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yitingw3 committed Feb 6, 2024
1 parent 42af61f commit c49d1f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Run default build tool task
uses: matlab-actions/run-build@v1
with:
tasks: test
tasks: clean test

# You can use "run-command" to execute custom MATLAB scripts, functions, or statements.
#- name: Run custom testing procedure
Expand Down
4 changes: 4 additions & 0 deletions buildfile.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@
% Set default task
plan.DefaultTasks = "test";

% Make the "test" task dependent on the "setUp" task
plan("clean") = CleanTask;
plan("test").Dependencies = "setUp";

end

function setUpTask(context)

% Add source code folder to path
srcFolder = fullfile(context.Plan.RootFolder, "code");
addpath(srcFolder);

end

0 comments on commit c49d1f6

Please sign in to comment.