Skip to content

feat: make Knip and Jest workflows reusable (#13) - #86

Closed
namanharshwal wants to merge 1 commit into
ubiquity-os:developmentfrom
namanharshwal:feat/reusable-knip-jest-workflows
Closed

namanharshwal wants to merge 1 commit into
ubiquity-os:developmentfrom
namanharshwal:feat/reusable-knip-jest-workflows

Conversation

@namanharshwal

Copy link
Copy Markdown

Summary

Converts the , , and workflows into modular, reusable GitHub Actions workflows ().

This enables template-derived repositories (such as and plugin repos across UbiquityOS) to inherit CI updates centrally without duplicating workflow files or manual synchronization.

Key Changes

  1. Reusable Jest Workflow ():
    • Added trigger with inputs: (supports , , npm

Usage:

npm install install all the dependencies in your project
npm install add the dependency to your project
npm test run this project's tests
npm run run the script named
npm -h quick help on
npm -l display usage info for all commands
npm help search for help on
npm help npm more involved overview

All commands:

access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, sbom,
search, set, shrinkwrap, star, stars, start, stop, team,
test, token, uninstall, unpublish, unstar, update, version,
view, whoami

Specify configs in the ini-formatted file:
/home/nammy/.npmrc
or on the command line via: npm --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@10.8.2 /usr/lib/node_modules/npm, ), , , , , , and .

  • Backward-compatible with local and events.
  1. Reusable Knip Workflow ():
    • Added trigger supporting , , npm

Usage:

npm install install all the dependencies in your project
npm install add the dependency to your project
npm test run this project's tests
npm run run the script named
npm -h quick help on
npm -l display usage info for all commands
npm help search for help on
npm help npm more involved overview

All commands:

access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, sbom,
search, set, shrinkwrap, star, stars, start, stop, team,
test, token, uninstall, unpublish, unstar, update, version,
view, whoami

Specify configs in the ini-formatted file:
/home/nammy/.npmrc
or on the command line via: npm --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

npm@10.8.2 /usr/lib/node_modules/npm, toolchains.

  • Preserves PR number export () and knip results artifact generation.
  1. Reusable Knip Reporter Workflow ():
    • Added trigger to post knip results comments on PRs.
  2. Documentation:
    • Added with complete usage guides and input references for downstream repository maintainers.

Verification

  • Tested with (all 5 test suites pass).
  • Tested formatting and linting with (0 errors).

Closes #13

@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f43900f-09a7-4a1b-a8bb-c9b4bc943cb2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Make Knip and Jest workflows reusable

1 participant