Skip to content

Commit 80435b1

Browse files
author
David Buzinski
committed
update ts module type, jest options, and node version
1 parent 56f95cf commit 80435b1

13 files changed

Lines changed: 268 additions & 111 deletions

.github/workflows/bat.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- os: windows-latest
1515
- os: macos-latest
1616
steps:
17-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@v6
1818
- uses: matlab-actions/setup-matlab@v2
1919
with:
2020
release: latest-including-prerelease
@@ -24,10 +24,10 @@ jobs:
2424
name: Build and Test
2525
runs-on: ubuntu-22.04
2626
steps:
27-
- uses: actions/checkout@v5
28-
- uses: actions/setup-node@v5
27+
- uses: actions/checkout@v6
28+
- uses: actions/setup-node@v6
2929
with:
30-
node-version: 20
30+
node-version: 24
3131
- name: Perform npm tasks
3232
run: npm run ci
3333

.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

jest.config.js

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

jest.config.ts

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

0 commit comments

Comments
 (0)