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
29 changes: 22 additions & 7 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
name: Check tsc, lint, and prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '18.x'
node-version: '22.x'
- run: npm install
- run: npm run lint
- run: npm run prettier
Expand All @@ -22,15 +22,30 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 20]

node-version: [22]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
testOtherNodeVersions:
name: Test on node ${{ matrix.node-version }} and ubuntu-latest
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 24]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.20.8
nodejs 22.21.1
6 changes: 4 additions & 2 deletions DEPENDENCY-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ As of 2025 March 28:
The `npm outdated` command reports the following dependencies as outdated.
They are not being updated at this time for the reasons given below:

- `@types/diff`: locked to 5.x because later versions cause lint errors
- `@types/node`: don't update until Node 22 is LTS version (currently Node 20).
- `@types/node`: stay on v22 until we are ready to move to v24. Currently, Node 24 segfaults during SUSHI tests on macos in GitHub Actions.
- `chalk`: major version 5 causes problems for jest. Keep updated to latest 4.x release.
- `commander`: major version 14 requires Node 20 and higher. Wait until community has had sufficient time to move off Node 18.
- `flat`: major version 6 is an esmodule.
- `ini`: major version 6 requires Node 20 and higher. Wait until community has had sufficient time to move off Node 18.

3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const isCI = process.env.CI === 'true';

module.exports = {
transform: {
'^.+\\.(js|jsx|ts|tsx)$': [
Expand All @@ -11,6 +13,7 @@ module.exports = {
testMatch: ['**/test/**/*.test.(ts|js)'],
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended/all'],
collectCoverage: !isCI,
collectCoverageFrom: ['src/**/*.ts'],
preset: 'ts-jest'
};
Loading