fix: V2.18.9 better validation for addMessage #12
This file contains hidden or 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: MATLAB Tests | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'core/**' | |
| - 'tests/**' | |
| - 'setupCI.m' | |
| - '.github/workflows/matlab-tests.yml' | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - 'core/**' | |
| - 'tests/**' | |
| - 'setupCI.m' | |
| - '.github/workflows/matlab-tests.yml' | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| name: Run MATLAB Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y xvfb | |
| sudo apt-get install -y libglut-dev | |
| sudo apt-get install -y libglu1-mesa-dev | |
| sudo apt-get install -y libx11-dev | |
| sudo apt-get install -y libdc1394-dev | |
| sudo apt-get install -y libraw1394-dev | |
| sudo apt-get install -y curl | |
| - name: Start virtual display server | |
| run: | | |
| Xvfb :99 -screen 0 1024x768x24 & | |
| echo "DISPLAY=:99" >> $GITHUB_ENV | |
| - name: Download Psychtoolbox dependency (V3.0.21 as the last version useable with CI) | |
| run: | | |
| curl -L -o /tmp/ptb.zip https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases/download/3.0.21.0/3.0.21.0.zip && unzip -o -d /tmp/PTB /tmp/ptb.zip | |
| - name: Set up MATLAB | |
| uses: matlab-actions/setup-matlab@v3 | |
| with: | |
| release: latest | |
| cache: true | |
| - name: Run tests | |
| uses: matlab-actions/run-command@v3 | |
| with: | |
| command: setupCI; runOptickaTests; |