Skip to content

Commit da4e63d

Browse files
committed
ci: use buildtool for check/test
1 parent 0eda9d4 commit da4e63d

File tree

4 files changed

+9
-54
lines changed

4 files changed

+9
-54
lines changed

+stdlib/+test/MLint.txt

Whitespace-only changes.

+stdlib/+test/TestLint.m

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

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
os: [ubuntu-latest, windows-latest, macos-latest]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222

2323
- name: Install MATLAB
2424
uses: matlab-actions/setup-matlab@v1
2525

26-
- name: Run tests and generate artifacts
26+
- name: Run tests
2727
timeout-minutes: 10
2828
uses: matlab-actions/run-command@v1
2929
with:
30-
command: r = runtests('stdlib.test'), assert(~isempty(r)), assertSuccess(r)
30+
command: buildtool

buildfile.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
function plan = buildfile
22
plan = buildplan(localfunctions);
3+
plan.DefaultTasks = "test";
4+
plan("test").Dependencies = "check";
35
end
46

5-
function lintTask(~)
6-
assertSuccess(runtests('stdlib.test.TestLint'))
7+
function checkTask(~)
8+
% Identify code issues (recursively all Matlab .m files)
9+
issues = codeIssues;
10+
assert(isempty(issues.Issues),formattedDisplayText(issues.Issues))
711
end
812

913
function testTask(~)

0 commit comments

Comments
 (0)