Add matrix to test on multiple releases of MATLAB #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run MATLAB Tests on GitHub-Hosted Runner | |
on: [push] | |
jobs: | |
my-job: | |
name: Run MATLAB Tests and Generate Artifacts | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
release: [R2023a, R2023b] | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v1 | |
with: | |
release: ${{ matrix.release }} | |
- name: Add paths | |
uses: matlab-actions/run-command@v1 | |
with: | |
command: addpath(genpath("src")) | |
- name: Run MATLAB Tests | |
uses: matlab-actions/run-tests@v1.5.2 | |
with: | |
select-by-folder: tests | |
test-results-junit: test-results/results.xml | |
code-coverage-cobertura: code-coverage/coverage.xml | |
source-folder: src |