ci: add license check job#18
Conversation
Signed-off-by: Andy Jakubowski <[email protected]>
📝 WalkthroughWalkthroughAdds a new GitHub Actions job "License Check" to .github/workflows/ci.yml that runs on ubuntu-latest with a 5-minute timeout. The job checks out code, sets up pnpm and Node.js via .nvmrc (with pnpm cache), installs dependencies with --frozen-lockfile, and runs the new npm script Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub Actions
participant Workflow as CI Workflow
participant LicenseJob as "License Check Job"
participant Tool as "license-checker-rseidelsohn"
Dev->>GH: Push / PR
GH->>Workflow: Trigger CI
Workflow->>LicenseJob: Start (ubuntu-latest, timeout 5m)
rect rgba(200,235,255,0.25)
note right of LicenseJob: Steps: checkout → setup pnpm → setup Node (.nvmrc, pnpm cache) → install deps (--frozen-lockfile)
LicenseJob->>Tool: pnpm run license-check (JSON output)
note right of Tool: Allow: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC\nExclude: deepnote
Tool-->>LicenseJob: Report/exit code
end
LicenseJob-->>Workflow: Job status
Workflow-->>GH: CI result
Possibly related PRs
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-08-18T23:41:22.727ZApplied to files:
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 3 3
Branches 1 1
=========================================
Hits 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Andy Jakubowski <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
.github/workflows/ci.yml(1 hunks)package.json(2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use provided build/lint/test commands (pnpm build, lint, typecheck, test) and Nx invocations
Applied to files:
package.json
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format` to check code style
Applied to files:
package.json
🪛 GitHub Actions: CI
package.json
[error] 18-18: CSpell: Unknown word 'rseidelsohn'.
[error] 46-46: CSpell: Unknown word 'rseidelsohn'.
Signed-off-by: Andy Jakubowski <[email protected]>
Fixes #17
This PR introduces automated license compliance checks using license-checker-rseidelsohn.
This ensures that all dependencies in the monorepo remain compatible with our Apache-2.0 licensing.
Summary by CodeRabbit