Skip to content

ci: Add GitHub Actions with bun check and bun audit - #9

Closed
devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1791847630-ci-bun-check
Closed

devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1791847630-ci-bun-check

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Adds CI (.github/workflows/ci.yml). It runs on PRs, on pushes to main, daily at 06:17 UTC and on manual dispatch. The job runs npm ci, then npm run types, then fails if worker-configuration.d.ts is stale, then npm run verify and npm test.

Type checking and the vulnerability scan now use Bun's built-in commands (npm is still the package manager):

-"check": "npm run lint && npm run format:check && wrangler deploy --dry-run && tsc --noEmit",
+"typecheck": "bun check",
+"audit": "bun audit",
+"verify": "npm run lint && npm run format:check && npm run typecheck && npm run audit && wrangler deploy --dry-run",
  • Why check was renamed to verify: Bun gives a package.json script priority over its own subcommand. With a check script present, every bun check … call ran the npm script instead of Bun's type checker.
  • bun check gives the same errors as tsc and uses all CPU cores. Locally: no type errors in 6 files, in about 130 ms.
  • bun audit reads package-lock.json directly and doesn't write a bun.lock.

Dependency bumps that clear the audit (it went from 8 npm findings, 2 of them critical, to 0; bun audit also reports none):

  • npm audit fix
  • oxfmt ^0.65.0 → ^0.72.0, which fixes the critical tinypool finding
  • @cloudflare/vitest-plugin 1.1.7 → 1.4.0 and wrangler 4.131.0 → 4.149.0, which fix undici and sharp through their bundled miniflare

npm run types leaves worker-configuration.d.ts unchanged. Locally, npm ci && npm run types && npm run verify && npm test passes (9 tests).

Link to Devin session: https://app.devin.ai/sessions/d1a157c9cdb942ec9895b90df699f5c6
Open in Devin Desktop: https://app.devin.ai/desktop/session/d1a157c9cdb942ec9895b90df699f5c6?variant=devin
Requested by: @gpu004

Awesome stuff and others added 2 commits October 12, 2026 23:30
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@socket-security

socket-security Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​cloudflare/​vitest-plugin@​1.1.7 ⏵ 1.4.099 +110081 +199 +3100
Updatedoxfmt@​0.65.0 ⏵ 0.72.094 +810088 +196 +1100
Updatedwrangler@​4.131.0 ⏵ 4.149.0981009296100

View full report

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@gpu004

gpu004 commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Note

🤖 Claude Opus 5.5 responding on behalf of @tusharxoxoxo

Closing: main already has CI from #12 (npm run check, npm test and the TLC model check), and #14 carries the dependency fixes.

The check → verify rename and the move to bun check would break the commands that AGENTS.md, the readme and CI document. I don't think they're worth that churn.

@gpu004 gpu004 closed this Nov 20, 2026
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.

1 participant