Skip to content
Draft
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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Run build
run: pnpm run build

# Matrix data for both matrix jobs below. scripts/ci-matrix.mjs is the
# Matrix data for both matrix jobs below. scripts/ci-matrix.mts is the
# single source of truth (also imported by the local runner: `pnpm run
# test:ci`), so the workflow and local legs cannot drift apart.
matrix-data:
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Emit matrix JSON
id: emit
run: node scripts/ci-matrix.mjs --emit >> "$GITHUB_OUTPUT"
run: node scripts/ci-matrix.mts --emit >> "$GITHUB_OUTPUT"

test-no-cluster:
name: Test (no cluster)
Expand All @@ -73,7 +73,7 @@ jobs:
needs: [checks, matrix-data]
strategy:
fail-fast: false
# Entries come from scripts/ci-matrix.mjs via the matrix-data job.
# Entries come from scripts/ci-matrix.mts via the matrix-data job.
matrix:
image: ${{ fromJSON(needs.matrix-data.outputs.cluster-images) }}
env:
Expand All @@ -99,7 +99,7 @@ jobs:
strategy:
fail-fast: false
# Include entries ({client, version, project, image}) come from
# scripts/ci-matrix.mjs via the matrix-data job.
# scripts/ci-matrix.mts via the matrix-data job.
matrix: ${{ fromJSON(needs.matrix-data.outputs.client-matrix) }}
env:
REDIS_IMAGE: ${{ matrix.image }}
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@
"lint:fix": "oxlint --fix",
"prepare": "husky",
"prepublishOnly": "pnpm run build && tsc",
"test": "pnpm exec vitest",
"test:ci": "node scripts/test-ci.mjs",
"test:cluster": "pnpm exec vitest run --project ioredis --project node-redis",
"test:coverage": "pnpm exec vitest run --coverage",
"test:lib": "pnpm exec vitest run --project lib-smoke",
"test:light": "pnpm exec vitest run --project light-smoke",
"test:local": "pnpm exec vitest run --project local",
"test:memory": "pnpm exec vitest run --project memory",
"test:no-cluster": "SKIP_REDIS_CONTAINER=1 pnpm exec vitest run --project local --project light-smoke --project memory",
"test:smoke": "pnpm exec vitest run --project light-smoke --project lib-smoke"
"test": "vitest",
"test:ci": "tsx scripts/test-ci.mts",
"test:cluster": "vitest run --project ioredis --project node-redis",
"test:coverage": "vitest run --coverage",
"test:lib": "vitest run --project lib-smoke",
"test:light": "vitest run --project light-smoke",
"test:local": "vitest run --project local",
"test:memory": "vitest run --project memory",
"test:no-cluster": "SKIP_REDIS_CONTAINER=1 vitest run --project local --project light-smoke --project memory",
"test:smoke": "vitest run --project light-smoke --project lib-smoke"
},
"devDependencies": {
"@testcontainers/redis": "^12.1.0",
Expand All @@ -82,6 +82,7 @@
"redis": "^6.2.1",
"testcontainers": "^12.1.0",
"tsdown": "^0.22.14",
"tsx": "^4.23.12",
"typescript": "^6.0.0",
"vitest": "^4.1.11"
},
Expand Down
Loading