-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable automation of MATLAB tests (#59)
* Add usage of `matlab-actions/run-tests` to test automation * Set up MATLAB prior to running tests in test action * Move MATLAB testing to separate job * Specify MATLAB version * Checkout before MATLAB tests * Resolve test failures * Update assertion * Temporarily update test action to run against all supported MATLAB versions * Leverage `testCase.assumeTrue` to skip tests in certain environments * Update tFormatCode `assumeTrue` condition * Update tFormatCode isApplicable check to check Java Swing again * Return isApplicable check to checking for the testing environment * Fix message text
- Loading branch information
Showing
6 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,12 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
typescript-build-and-test: | ||
name: ${{ matrix.os }}-${{ matrix.node-version }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 22.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
@@ -37,5 +38,25 @@ jobs: | |
run: npm ci | ||
- name: Build | ||
run: npm run compile | ||
- name: Run Unit Tests | ||
- name: Run TypeScript Unit Tests | ||
run: npm test | ||
|
||
matlab-test: | ||
env: | ||
MATLAB_TEST_ENVIRONMENT: 1 | ||
name: ${{ matrix.matlab-version }}-${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
matlab-version: [R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, latest] | ||
os: [windows-latest, ubuntu-latest, macos-13] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up MATLAB | ||
uses: matlab-actions/[email protected] | ||
with: | ||
release: ${{ matrix.matlab-version }} | ||
- name: Run MATLAB Unit Tests | ||
uses: matlab-actions/[email protected] |
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
7 changes: 7 additions & 0 deletions
7
tests/matlab/matlabls/handlers/linting/tGetSuppressionEdits.m
This file contains 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