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
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm test
- run: npm run lint
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Resolved
47 changes: 47 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins/plugin-builder/build/core/dry-run.js
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ function runDryRun(targetName, pluginDir) {
const desc = TARGETS[targetName];
if (!desc) return fail(`unknown dry-run target: ${targetName}`);

if (!commandExists(desc.cli)) return skip(`${desc.cli} CLI not installed`);

const manifestPath = path.join(pluginDir, desc.manifestSubdir, 'plugin.json');
const manifest = readJsonSafe(manifestPath);
if (!manifest) return fail(`${desc.manifestSubdir}/plugin.json missing or invalid`);
const name = manifest.name;
if (!name || typeof name !== 'string') return fail(`${desc.manifestSubdir}/plugin.json name missing`);
if (!SAFE_NAME.test(name)) return fail(`plugin name unsafe (expected kebab-case): ${name}`);

if (!commandExists(desc.cli)) return skip(`${desc.cli} CLI not installed`);
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Resolved

const tmp = mkTmp(desc.tmpPrefix);
try {
const staged = path.join(tmp, 'plugin');
Expand Down
6 changes: 2 additions & 4 deletions plugins/plugin-builder/build/tests/dry-run.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ test('dry-run.runClaude: missing manifest → FAIL not SKIP (no false PASS)', ()
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'pb-dryrun-empty-'));
try {
const r = dryRun.runClaude(dir);
// If claude CLI is missing this returns SKIP; if claude exists the manifest
// load must fail loudly, never silently PASS.
assert.ok(['SKIP', 'FAIL'].includes(r.status), `expected SKIP|FAIL got ${r.status}`);
if (r.status === 'FAIL') assert.match(r.reason, /missing|invalid/);
assert.equal(r.status, 'FAIL');
assert.match(r.reason, /missing|invalid/);
} finally {
fs.rmSync(dir, { recursive: true, force: true });
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"scripts": {
"test": "node --test build/tests/*.test.js",
"lint": "node --check bin/plugin-builder && find build/core build/adapters -name '*.js' -exec node --check {} \\;"
"lint": "node --check bin/plugin-builder && bash -o pipefail -c \"find build/core build/adapters -name '*.js' -print0 | xargs -0 -n 1 node --check\""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Info: 로컬 린트에 Bash 필요

Ubuntu CI와 달리, Bash가 없는 로컬 환경에서는 find와 xargs가 있어도 린트가 소스 검사에 들어가지 못합니다.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

},
"license": "MIT",
"author": "developjik <developjik@gmail.com>",
Expand Down