From e8d600fad34f51f39303c3271eac420eee58d130 Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Wed, 28 Aug 2024 12:53:24 -0600 Subject: [PATCH] Add GHA for testing Signed-off-by: Travis F. Collins --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e40259b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Run Tests + +on: [push] + +jobs: + build: + name: Run Tests + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + matlab-version: ['R2021a', 'R2021b', 'R2022a', 'R2022b', 'R2023a', 'R2023b', 'R2024a'] + + steps: + - name: Check out repository + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Set up MATLAB + uses: matlab-actions/setup-matlab@v2 + with: + release: ${{ matrix.matlab-version }} + products: > + Signal_Processing_Toolbox + DSP_System_Toolbox + Communications_Toolbox + Fixed-Point_Designer + Simulink + + - name: Test Designer + uses: matlab-actions/run-command@v2 + with: + command: addpath(genpath('.'));cd('test');runTests;exit()