Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "20"
node-version: 24
- name: Perform npm tasks
run: npm run ci
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: built-action
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
outputs:
tag: ${{ steps.update-package-version.outputs.version }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Configure git
run: |
git config user.name 'Release Action'
git config user.email '<>'
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24

# Call `npm version`. It increments the version and commits the changes.
# We'll save the output (new version string) for use in the following
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ inputs:
required: false
default: ""
runs:
using: node20
using: node24
main: dist/index.js
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

22 changes: 22 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export default {
clearMocks: true,
testEnvironment: "node",
collectCoverage: true,
testMatch: ["**/*.test.ts"],
transform: {
"^.+\\.[jt]s$": [
"ts-jest",
{
useESM: true,
diagnostics: {
ignoreCodes: [151002],
},
},
],
},
extensionsToTreatAsEsm: ['.ts'],
transformIgnorePatterns: ["node_modules/(?!(@actions)/)"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
};
1,230 changes: 656 additions & 574 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"author": "The MathWorks, Inc.",
"version": "2.6.1",
"description": "",
"type": "module",
"main": "lib/index.js",
"scripts": {
"clean": "rm -rf dist lib",
Expand All @@ -11,27 +12,27 @@
"build": "tsc",
"deps": "bash ./scripts/setupdeps.sh",
"package": "ncc build --minify",
"test": "jest",
"test": "NODE_OPTIONS='--experimental-vm-modules' jest",
"all": "npm test && npm run build && npm run package",
"ci": "npm run clean && npm ci && npm run deps && npm run all"
},
"files": [
"lib/"
],
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"common-utils": "github:matlab-actions/common-utils#v1.0.1"
"@actions/core": "^3.0.0",
"@actions/exec": "^3.0.0",
"common-utils": "github:matlab-actions/common-utils#v2.0.1"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^24.3.0",
"@types/uuid": "^10.0.0",
"@vercel/ncc": "^0.38.3",
"jest": "^30.0.5",
"jest-circus": "^30.0.5",
"prettier": "3.6.2",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"typescript": "^5.9.2"
}
}
2 changes: 1 addition & 1 deletion src/buildtool.unit.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2022-2025 The MathWorks, Inc.

import * as buildtool from "./buildtool";
import * as buildtool from "./buildtool.js";

describe("command generation", () => {
it("buildtool invocation with unspecified tasks and build options", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as core from "@actions/core";
import * as exec from "@actions/exec";
import * as buildtool from "./buildtool";
import * as buildtool from "./buildtool.js";
import { matlab, testResultsSummary, buildSummary } from "common-utils";

/**
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"sourceMap": true,
"rootDir": "src",
Expand All @@ -12,5 +13,5 @@
"esModuleInterop": true
},

"exclude": ["node_modules", "lib", "**/*.test.ts"]
"exclude": ["node_modules", "lib", "**/*.test.ts", "jest.config.ts"]
}
Loading