Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

# Typecheck gate for pull requests and for main.
#
# The package ships TypeScript sources (`index.ts`, `tui.tsx`, `src/`) that
# OpenCode compiles when it loads the plugin, so a type error is a runtime
# failure for users rather than a build error. There is no build step to catch
# it, which makes this workflow the only check between a broken type and a
# published release.
#
# `npm ci` needs `package-lock.json` committed; it is the single source of the
# dependency tree that gets published.

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install
run: npm ci

- name: Typecheck
run: npm run typecheck
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ node_modules/
.DS_Store
bun.lock
bun.lockb
package-lock.json
.env
.env.*
.npmrc
Loading
Loading