ci: add Node.js version matrix, caching, and lint step to test workflow
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- github-actions, javascript, nodejs
- Domain
- ci-cd, devops, testing-qa
Research direction
Start with .github/workflows/test.yml and inspect the existing test job, then compare its Node.js version with the Volta configuration mentioned in the issue. Update the workflow to cover the requested Node.js versions, dependency caching, current action versions, and the web lint command; run the workflow or its equivalent checks to confirm build, lint, and tests pass for every matrix entry.
Written by the indexing model from the issue text.
Description
Problem
The CI workflow at .github/workflows/test.yml has several gaps:
- Only tests on Node.js 22.x (volta config says 16 — mismatch)
- No dependency caching between runs (slow CI)
- No lint step in CI (eslint only runs via pre-commit hook)
- Uses
actions/checkout@v2andactions/setup-node@v2(both outdated)
Suggested Fix
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: cd packages/web && yarn build
- run: cd packages/web && yarn lint
- run: cd packages/web && yarn test --verbose --maxWorkers=2
Severity
Medium — CI reliability and speed
- Dominant language
- JavaScript
- Stars
- 4.9k
- Forks
- 477
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from appbaseio/reactivesearch
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
appbaseio/reactivesearch#2321 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
appbaseio/reactivesearch#2319 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
appbaseio/reactivesearch#2324 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
appbaseio/reactivesearch#2323 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
appbaseio/reactivesearch#2320 ·
All issues in appbaseio/reactivesearch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·