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
28 changes: 20 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,29 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 24.x
- run: npm ci --prefix plugins/redis
- run: npm ci
- run: npm run tsc
- run: npm run buildcjs
- run: npm run coverage
- run: npm prune --omit=dev
- run: npm link
- run: npm i node-fetch-cache@5.1 --prefix plugins/redis
- run: npm link node-fetch-cache
working-directory: plugins/redis
- run: npm run coverage
- name: Upload coverage reports to Codecov
working-directory: plugins/redis
- name: Upload root coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
flags: root
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload redis coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./plugins/redis/coverage/lcov.info
flags: redis
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -40,7 +53,7 @@ jobs:

strategy:
matrix:
node-version: [18.19.0, 18.x, 20.x, 22.x, 25.x]
node-version: [18.19.0, 18.x, 20.x, 22.x, 26.x]

services:
httpbin:
Expand All @@ -58,15 +71,14 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --prefix plugins/redis
- run: npm ci
- run: npm run tsc
- run: npm run buildcjs
- run: npm test
- run: npm prune --omit=dev
- run: npm link
- run: npm i node-fetch-cache@5.1 --prefix plugins/redis
- run: npm link node-fetch-cache
working-directory: plugins/redis
- name: Use Node.js Version Under Test
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm test
working-directory: plugins/redis
36 changes: 28 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,34 @@
{
"type": "node",
"request": "launch",
"name": "Debug Tests Local Server",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "test:debug"],
"console": "integratedTerminal",
"env": {
"HTTP_BIN_BASE_URL": "http://localhost:3000"
},
"runtimeVersion": "20"
"name": "Debug Root Tests",

"program": "${workspaceFolder}/node_modules/mocha/bin/mocha.js",
"args": [
"--spec", "test/tests.ts",
"--timeout", "10000",
"--exit"
],
"runtimeArgs": [
"--import", "tsx"
],
"stopOnEntry": false
},
{
"type": "node",
"request": "launch",
"name": "Debug Redis Tests",
"cwd": "${workspaceFolder}/plugins/redis",
"program": "${workspaceFolder}/plugins/redis/node_modules/mocha/bin/mocha.js",
"args": [
"--spec", "test_redis_cache.ts",
"--timeout", "10000",
"--exit"
],
"runtimeArgs": [
"--import", "tsx"
],
"stopOnEntry": false
}
]
}
Loading
Loading