Skip to content

Merge pull request #17 from OceanNetworksCanada/issue-4-set-up-workfl… #3

Merge pull request #17 from OceanNetworksCanada/issue-4-set-up-workfl…

Merge pull request #17 from OceanNetworksCanada/issue-4-set-up-workfl… #3

Workflow file for this run

name: Run MATLAB Tests
on:
pull_request:
branches:
- 'main'
- 'release-staging-*'
push:
branches:
- 'main'
- 'release-staging-*'
workflow_dispatch:
jobs:
tests:
name: MATLAB Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
matlab: ["R2022b"]
os: [ubuntu-latest, windows-latest]
env:
MLM_LICENSE_FILE: ${{ secrets.MATLAB_LICENSE }}
steps:
- name: Check out repository
uses: actions/checkout@main
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab }}
cache: true
- name: Run tests
uses: matlab-actions/run-tests@v2
with:
source-folder: 'onc'
env:
TOKEN: ${{ secrets.TOKEN }}
ONC_ENV: true