Skip to content

CI: modernize GitHub Actions workflow matrix, actions v4, yarn caching, and lint step - #2331

Open
Talha12Shiekh wants to merge 1 commit into
appbaseio:nextfrom
Talha12Shiekh:ci/improve-github-actions-workflow
Open

CI: modernize GitHub Actions workflow matrix, actions v4, yarn caching, and lint step#2331
Talha12Shiekh wants to merge 1 commit into
appbaseio:nextfrom
Talha12Shiekh:ci/improve-github-actions-workflow

Conversation

@Talha12Shiekh

Copy link
Copy Markdown

Proposed Changes

Resolves issue #2322 by modernizing .github/workflows/test.yml to improve CI speed, reliability, and test coverage across Node.js LTS versions:

  1. Updated Actions to v4: Replaced outdated actions/checkout@v2 and actions/setup-node@v2 with @v4.
  2. Node.js Test Matrix: Updated test matrix strategy to test across Node.js 18.x, 20.x, and 22.x (aligning with current Volta config and Node LTS releases).
  3. Dependency Caching: Enabled Yarn package caching (cache: 'yarn') to significantly accelerate CI workflow execution.
  4. Deterministic Locks: Configured yarn install --frozen-lockfile to ensure lockfile integrity during CI builds.
  5. CI Lint Step: Added "lint": "eslint src" script in packages/web/package.json and integrated yarn lint step in the workflow pipeline.

Linked Issues

Checklist

  • Describe the proposed changes and how it'll improve the library experience.
  • Please make sure that there are no linting errors in the code.
  • Add a demo video/gif/screenshot to explain how did you test the fix.
  • If it is a global change, try to add any side effects that it could have.
  • Create a PR to add/update the docs (if needed) at here.
  • Create a PR to add/update the storybook (if needed) at here.

Improvements to the Library Experience

  • CI Speed & Performance: Yarn dependency caching reduces workflow execution duration on every PR run.
  • Reliability: Validates library builds against all active Node.js LTS versions (18.x, 20.x, 22.x).
  • Code Quality: Automated ESLint validation on CI builds prevents unformatted or buggy code from entering next.

Side Effects

  • None. Workflow changes affect GitHub Actions CI pipeline execution only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add Node.js version matrix, caching, and lint step to test workflow

1 participant