Skip to content

Commit 10d6e4e

Browse files
committed
Merge branch 'main' into tarun/codeCovView
2 parents 745725e + 96a5f78 commit 10d6e4e

12 files changed

Lines changed: 241 additions & 1109 deletions

File tree

.github/workflows/bat.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ jobs:
88
name: Build and Test
99
runs-on: ubuntu-22.04
1010
steps:
11-
- uses: actions/checkout@v5
12-
- uses: actions/setup-node@v5
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
1313
with:
14-
node-version: 20
15-
- name: Configure npm for public registry
16-
run: |
17-
rm -f .npmrc
18-
npm config set registry https://registry.npmjs.org/
14+
node-version: 24
1915
- name: Perform npm tasks
2016
run: npm run ci
21-
- uses: actions/upload-artifact@v4
17+
- uses: actions/upload-artifact@v5
2218
with:
2319
name: built-action
2420
path: |

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
outputs:
1313
tag: ${{ steps.update-package-version.outputs.version }}
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
- name: Configure git
1717
run: |
1818
git config user.name 'Release Action'
1919
git config user.email '<>'
20-
- uses: actions/setup-node@v5
20+
- uses: actions/setup-node@v6
2121
with:
22-
node-version: 20
22+
node-version: 24
2323

2424
# Call `npm version`. It increments the version and commits the changes.
2525
# We'll save the output (new version string) for use in the following

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
runs-on: self-hosted
1919
steps:
2020
- name: Check out repository
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v6
2222
- name: Run tests
23-
uses: matlab-actions/run-tests@v2
23+
uses: matlab-actions/run-tests@v3
2424
```
2525
2626
### Generate Test and Coverage Artifacts
@@ -35,11 +35,11 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Check out repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v6
3939
- name: Set up MATLAB
40-
uses: matlab-actions/setup-matlab@v2
40+
uses: matlab-actions/setup-matlab@v3
4141
- name: Run tests
42-
uses: matlab-actions/run-tests@v2
42+
uses: matlab-actions/run-tests@v3
4343
with:
4444
test-results-junit: test-results/results.xml
4545
code-coverage-cobertura: code-coverage/coverage.xml
@@ -57,16 +57,16 @@ jobs:
5757
runs-on: ubuntu-latest
5858
steps:
5959
- name: Check out repository
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v6
6161
- name: Set up products
62-
uses: matlab-actions/setup-matlab@v2
62+
uses: matlab-actions/setup-matlab@v3
6363
with:
6464
products: >
6565
Simulink
6666
Simulink_Test
6767
Parallel_Computing_Toolbox
6868
- name: Run tests
69-
uses: matlab-actions/run-tests@v2
69+
uses: matlab-actions/run-tests@v3
7070
with:
7171
use-parallel: true
7272
```
@@ -92,15 +92,15 @@ jobs:
9292
runs-on: ubuntu-latest
9393
steps:
9494
- name: Check out repository
95-
uses: actions/checkout@v4
95+
uses: actions/checkout@v6
9696
- name: Set up MATLAB
97-
uses: matlab-actions/setup-matlab@v2
97+
uses: matlab-actions/setup-matlab@v3
9898
- name: Run tests
99-
uses: matlab-actions/run-tests@v2
99+
uses: matlab-actions/run-tests@v3
100100
```
101101

102102
## Run MATLAB Tests
103-
When you define your workflow in the `.github/workflows` directory of your repository, specify the **Run MATLAB Tests** action as `matlab-actions/run-tests@v2`.
103+
When you define your workflow in the `.github/workflows` directory of your repository, specify the **Run MATLAB Tests** action as `matlab-actions/run-tests@v3`.
104104

105105
By default, the action includes any files in your project that have a `Test` label. If your workflow does not use a MATLAB project, or if it uses a MATLAB release before R2019a, then the action includes all tests in the root of your repository and in any of its subfolders. The action fails if any of the included tests fail.
106106

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2024 The MathWorks, Inc.
1+
# Copyright 2020-2026 The MathWorks, Inc.
22

33
name: Run MATLAB Tests
44
description: >-
@@ -90,5 +90,5 @@ inputs:
9090
required: false
9191
default: mcdc
9292
runs:
93-
using: node20
93+
using: node24
9494
main: dist/index.js

jest.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

jest.config.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export default {
2+
clearMocks: true,
3+
testEnvironment: "node",
4+
collectCoverage: true,
5+
testMatch: ["**/*.test.ts"],
6+
transform: {
7+
"^.+\\.[jt]s$": [
8+
"ts-jest",
9+
{
10+
useESM: true,
11+
diagnostics: {
12+
ignoreCodes: [151002],
13+
},
14+
},
15+
],
16+
},
17+
extensionsToTreatAsEsm: ['.ts'],
18+
transformIgnorePatterns: ["node_modules/(?!(@actions)/)"],
19+
moduleNameMapper: {
20+
"^(\\.{1,2}/.*)\\.js$": "$1",
21+
},
22+
};

0 commit comments

Comments
 (0)