Skip to content

Commit 418d308

Browse files
committed
use buildtool
1 parent 8162e4f commit 418d308

4 files changed

Lines changed: 18 additions & 58 deletions

File tree

+matmap3d/MLint.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

+matmap3d/TestLint.m

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

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@ name: ci
33
on:
44
push:
55
paths:
6-
- "**.m"
7-
- ".github/workflows/ci.yml"
6+
- "**.m"
7+
- ".github/workflows/ci.yml"
8+
89

910
jobs:
1011

11-
linux:
12+
matlab:
1213
runs-on: ubuntu-latest
1314
timeout-minutes: 10
1415

1516
steps:
16-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1718

1819
- name: Install MATLAB
1920
uses: matlab-actions/setup-matlab@v1
21+
with:
22+
release: R2022b
2023

21-
- name: Run tests and generate artifacts
22-
uses: matlab-actions/run-tests@v1
24+
- name: Run tests
25+
uses: matlab-actions/run-command@v1
2326
with:
24-
test-results-junit: test-results/results.xml
25-
code-coverage-cobertura: code-coverage/coverage.xml
27+
command: buildtool

buildfile.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
function plan = buildfile
22
plan = buildplan(localfunctions);
3+
plan.DefaultTasks = "test";
4+
plan("test").Dependencies = "check";
5+
end
6+
7+
function checkTask(~)
8+
% Identify code issues (recursively all Matlab .m files)
9+
issues = codeIssues;
10+
assert(isempty(issues.Issues),formattedDisplayText(issues.Issues))
311
end
412

513
function testTask(~)

0 commit comments

Comments
 (0)