@@ -10,57 +10,62 @@ runs:
1010 if : ${{ matrix.release >= 'R2024b' }}
1111 uses : matlab-actions/run-build@v2
1212 with :
13- startup-options : ${{ matrix.startup-options }}
1413 tasks : test:main
1514
1615
1716 - name : Main Tests (< R2024b)
1817 if : ${{ matrix.release >= 'R2022b' && matrix.release < 'R2024b' }}
1918 uses : matlab-actions/run-build@v2
2019 with :
21- startup-options : ${{ matrix.startup-options }}
2220 tasks : test_main
2321
2422
25- - name : Java Test
26- if : ${{ !contains(matrix.startup-options, '-nojvm') && matrix.release >= 'R2024b' }}
23+ - name : Java, JavaExe Test
24+ if : ${{ matrix.release >= 'R2024b' }}
2725 uses : matlab-actions/run-build@v2
2826 with :
29- startup-options : ${{ matrix.startup-options }}
3027 tasks : test:java test:java_exe
3128
3229
33- - name : Java Test (R2023b ..R2024a)
34- if : ${{ !contains( matrix.startup-options, '-nojvm') && matrix. release >= 'R2023b ' && matrix.release < 'R2024b' }}
30+ - name : Java Test (R2022b ..R2024a)
31+ if : ${{ matrix.release >= 'R2022b ' && matrix.release < 'R2024b' }}
3532 uses : matlab-actions/run-build@v2
3633 with :
37- startup-options : ${{ matrix.startup-options }}
38- tasks : test_java test_java_exe
34+ tasks : test_java
35+
36+
37+ - name : JavaExe Test (R2023b..R2024a)
38+ if : ${{ matrix.release >= 'R2023b' && matrix.release < 'R2024b' }}
39+ uses : matlab-actions/run-build@v2
40+ with :
41+ tasks : test_java_exe
3942
4043
4144 - name : Exe Test (>= R2024b)
4245 if : ${{ matrix.release >= 'R2024b' }}
4346 uses : matlab-actions/run-build@v2
4447 with :
45- startup-options : -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
4648 tasks : test:exe
49+ startup-options : &log -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
50+
4751
4852 - name : Exe Test (legacy)
4953 if : ${{ matrix.release >= 'R2023b' && matrix.release < 'R2024b' }}
5054 uses : matlab-actions/run-build@v2
5155 with :
52- startup-options : -logfile ${{ matrix.release }}-${{ runner.os }}-test. log
56+ startup-options : * log
5357 tasks : test_exe
5458
5559
60+
5661# note: "source-folder" adds all subfolders to Matlab path
5762# https://github.com/matlab-actions/run-tests?tab=readme-ov-file#run-matlab-tests
5863 - name : Non-buildtool tests (< R2022b)
5964 if : ${{ matrix.release < 'R2022b' }}
6065 uses : matlab-actions/run-command@v2
6166 with :
67+ startup-options : *log
6268 command : test_main
63- startup-options : -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
6469
6570 - name : upload logfile
6671 if : ${{ hashFiles(matrix.release-runner.os-test.log) != '' }}
0 commit comments