Skip to content

Commit 62ad79f

Browse files
committed
feat: add Node.js 24.x support and update test commands for coverage
1 parent b8ef118 commit 62ad79f

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

.github/workflows/node.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [20.x, 22.x, 23.x]
16+
node-version: [20.x, 22.x, 23.x, 24/x]
1717

1818
steps:
1919
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
@@ -23,12 +23,9 @@ jobs:
2323
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
- name: Setup pnpm
27-
uses: pnpm/[email protected]
2826
- name: Install and test
2927
run: |
30-
pnpm install
31-
make test
28+
npm install-ci-test
3229
env:
3330
CODECOV_UPLOAD_BUNDLE_TOKEN: ${{ secrets.CODECOV_UPLOAD_BUNDLE_TOKEN }}
3431
- name: Codecov install cli

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ certs: ## Generate new certs
2020

2121
.PHONY: test
2222
test: ## Run tests
23-
@pnpx vitest --run
23+
@npx vitest --run --coverage
2424

2525
.PHONY: build
2626
build: ## Build the project

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"lint:all": "pnpm run -r --stream lint",
1717
"format:all": "pnpm run -r --stream format",
1818
"test:packages": "pnpm run -r --stream test",
19-
"test": "make test",
19+
"test": "vitest --run --coverage",
2020
"types:db": "pnpm --filter=rusty-motors-database run types:db",
2121
"types": "dotenvx run -- pnpm run types:db",
2222
"migrate": "pg-migrations apply --directory migrations ",

packages/lobby/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
"author": "",
2020
"license": "AGPL-3.0",
2121
"dependencies": {
22-
"@fastify/sensible": "^6.0.3",
23-
"fastify": "^5.4.0",
2422
"rusty-motors-shared": ""
2523
},
2624
"directories": {
@@ -31,4 +29,4 @@
3129
"@vitest/coverage-v8": "3.2.4",
3230
"vitest": "^3.2.4"
3331
}
34-
}
32+
}

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineConfig({
2222
"packages/pklib-ts",
2323
...coverageConfigDefaults.exclude,
2424
],
25-
reporter: ["lcov", "cobertura"],
25+
reporter: ["lcov", "cobertura", "html", "text"],
2626
},
2727
exclude: [
2828
"packages/pklib-ts",

0 commit comments

Comments
 (0)