Skip to content

CI using MATLAB

CI using MATLAB #223

Workflow file for this run

# GitHub Actions Workflow with MATLAB Actions
#
# For a general overview of GitHub Actions, see
# https://docs.github.com/en/actions
#
# For using MathWorks products in GitHub Actions, see
# https://github.com/matlab-actions/overview
#
# For details about the syntax of this file, see
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# Copyright 2023 The MathWorks, Inc.
name: CI using MATLAB
on:
push:
paths-ignore:
- 'docs/**'
- '**.md'
- '**.png'
- '**.svg'
- '**.txt'
- '**.xml'
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- '**.png'
- '**.svg'
- '**.txt'
- '**.xml'
schedule:
- cron: '55/61 20/25 1/6 * *' # schedule a weekly-ish build
jobs:
job-Wind-Farm-GFM-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
Control_System_Toolbox
System_Identification_Toolbox
- name: Wind farm GFM unit tests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestrunnerWindFarmGFMControl;
job-PV-Plant-GFM-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
Control_System_Toolbox
System_Identification_Toolbox
- name: PV Plant BESS GFM unit tests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestrunnerPVPlantBESSGFMControl;
job-Admittance-Scan-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
Control_System_Toolbox
System_Identification_Toolbox
Simulink_Control_Design
- name: Admittance Scan unit tests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestrunnerAdmittanceSCANPRBS;
job-HVDC-MT-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
Control_System_Toolbox
System_Identification_Toolbox
- name: MTHVDC unit tests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestrunnerMTHVDC;
job-HVDC-Scan-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
Control_System_Toolbox
System_Identification_Toolbox
Simulink_Control_Design
- name: HVDC Scan unit tests
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestrunnerAdmittanceSCANHVDC;
job-Grid-Code-project-unit-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2025a
cache: true
products: |
Simulink
Simscape
Simscape_Electrical
- name: Grid Code Unit Test
uses: matlab-actions/run-command@v2
with:
command: openProject(pwd); UnitTestRunnerGridCode;