-
Notifications
You must be signed in to change notification settings - Fork 7
Do some regular maintenance #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node: [14, 16, 18] | ||
| node: [18, 20, 22] | ||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v4 | ||
|
|
@@ -21,16 +21,14 @@ jobs: | |
| check-latest: true | ||
| cache: npm | ||
|
|
||
| - name: Cache Node modules | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Caching the |
||
| id: cache-node-modules | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: node_modules | ||
| key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
|
||
| - name: Install dependencies | ||
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
| run: npm ci | ||
|
|
||
| - name: Run build | ||
| run: npm run build | ||
|
|
||
| - name: Run publication linter | ||
| run: npm run publint | ||
|
|
||
|
Comment on lines
+27
to
+32
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Building and publication linting (see below) is now done on CI as well. |
||
| - name: Run tests | ||
| run: npm test | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| node_modules | ||
| dist | ||
| coverage | ||
| .DS_Store | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is already ignored by Git by default. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // See: https://kulshekhar.github.io/ts-jest/docs/guides/esm-support | ||
| /** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
| export default { | ||
| preset: 'ts-jest/presets/default-esm', | ||
| moduleNameMapper: { | ||
| '^(\\.{1,2}/.*)\\.js$': '$1', | ||
| }, | ||
| transform: { | ||
| '^.+\\.tsx?$': [ | ||
| 'ts-jest', | ||
| { | ||
| useESM: true, | ||
| }, | ||
| ], | ||
| }, | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added all currently supported Node.js versions to the matrix.