File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,23 +3,25 @@ name: ci
33on :
44 push :
55 paths :
6- - " **.m"
7- - " .github/workflows/ci.yml"
6+ - " **.m"
7+ - " .github/workflows/ci.yml"
8+
89
910jobs :
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
Original file line number Diff line number Diff line change 11function plan = buildfile
22plan = 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))
311end
412
513function testTask(~)
You can’t perform that action at this time.
0 commit comments