diff --git a/.github/workflows/mrd_matlab.yml b/.github/workflows/mrd_matlab.yml index c48694c..4ab649c 100644 --- a/.github/workflows/mrd_matlab.yml +++ b/.github/workflows/mrd_matlab.yml @@ -1,4 +1,4 @@ -name: Matlab +name: Test MRD Matlab on: push: @@ -11,9 +11,8 @@ on: workflow_dispatch: jobs: - build: + test: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 diff --git a/matlab/.gitignore b/matlab/.gitignore index 9317f3b..321f1da 100644 --- a/matlab/.gitignore +++ b/matlab/.gitignore @@ -1,3 +1 @@ .buildtool/ -release/ -tests/results diff --git a/matlab/buildfile.m b/matlab/buildfile.m index 5e2f423..5ec5927 100644 --- a/matlab/buildfile.m +++ b/matlab/buildfile.m @@ -2,20 +2,14 @@ import matlab.buildtool.tasks.CodeIssuesTask import matlab.buildtool.tasks.TestTask - % Create a plan from task functions plan = buildplan(localfunctions); - - % Add a task to identify code issues plan("check") = CodeIssuesTask(Results="tests/results/static-analysis-results.sarif"); - - % Add a task to run tests plan("test") = TestTask("tests", SourceFiles="toolbox", TestResults="tests/results/test-results.xml"); - % Make the "packageToolbox" task the default task in the plan - plan.DefaultTasks = "packageToolbox"; + plan.DefaultTasks = ["check", "test"]; % Make the "packageToolbox" task dependent on the "check" and "test" tasks - plan("packageToolbox").Dependencies = ["check" "test"]; + % plan("packageToolbox").Dependencies = ["check" "test"]; end function packageToolboxTask(~) diff --git a/matlab/release/.gitignore b/matlab/release/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/matlab/release/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/matlab/tests/results/.gitignore b/matlab/tests/results/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/matlab/tests/results/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore