test: add opencode plugin compatibility checks

This commit is contained in:
Ralph Chang
2026-04-27 18:54:14 +08:00
parent fe6ce36e09
commit 25b673fbb7
3 changed files with 112 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
name: compatibility
on:
pull_request:
push:
branches: [main]
schedule:
- cron: "0 9 * * 1"
jobs:
locked:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm test
opencode-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm install --no-save @opencode-ai/plugin@latest
- run: npm run typecheck
- run: npm test