Skip to content

Commit

Permalink
Merge pull request #13 from OceanNetworksCanada/issue-4-set-up-workflow
Browse files Browse the repository at this point in the history
issue4: set up MATLAB workflow
  • Loading branch information
IslaL authored Mar 26, 2024
2 parents 130d2b7 + ac7fd85 commit 5744a10
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run MATLAB Tests

on:
pull_request:
branches: main
push:
branches: main
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 }}

0 comments on commit 5744a10

Please sign in to comment.