Skip to content

Commit

Permalink
dont test the redis plugin in 14.14.0 (it doesnt work there)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistval committed Jun 29, 2024
1 parent 2cd7cd9 commit 74fe688
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,40 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test_node_14.14.0:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.14.0]

services:
httpbin:
image: kennethreitz/httpbin
ports:
- 3000:80

steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm ci
- run: npm run tsc
- run: npm run buildcjs
- name: Use Node.js Version Under Test
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm run test:core

test_node_other:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.14.0, 14.x, 16.x, 18.x, 22.x]
node-version: [14.x, 16.x, 18.x, 22.x]

services:
httpbin:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"buildcjs": "cross-env rollup ./dist/index.js --file ./dist/index.cjs --format cjs && cp ./commonjs/wrapper.cjs ./dist/wrapper.cjs",
"test": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" mocha --require ts-node/register --spec test/tests.ts --spec plugins/redis/test_redis_cache.ts --extensions ts --timeout 10000 --exit && mocha --timeout 10000 --exit test/tests.cjs",
"test:debug": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" mocha --inspect --inspect-brk --require ts-node/register --spec test/tests.ts --extensions ts --timeout 10000 --exit",
"test:core": "cross-env NODE_OPTIONS=\"--loader ts-node/esm\" mocha --require ts-node/register --spec test/tests.ts --extensions ts --timeout 10000 --exit && mocha --timeout 10000 --exit test/tests.cjs",
"coverage": "c8 --reporter=lcov --reporter=text --reporter=html --exclude=dist --exclude=test npm test",
"lint": "xo .",
"lintfix": "xo . --fix",
Expand Down

0 comments on commit 74fe688

Please sign in to comment.