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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.3

- uses: pnpm/action-setup@v6.0.8

- uses: actions/setup-node@v6.4.0
with:
node-version: "24"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test
env:
ELYOS_API_KEY: ${{ secrets.ELYOS_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
9 changes: 9 additions & 0 deletions basic.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { describe, expect, it } from "vitest";
import { tools } from "./tools";

describe("tools", () => {
it("exports two function tools", () => {
expect(tools).toHaveLength(2);
expect(tools.every((t) => t.type === "function")).toBe(true);
});
});
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"useNamespaceKeyword": "error"
}
},
"includes": ["**", "!**/*.js", "!**/vite.config.ts"]
"includes": ["**", "!**/*.js"]
},
"javascript": {
"formatter": {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint:biome": "pnpm biome format .",
"lint:oxlint": "pnpm oxlint .",
"lint": "npm-run-all lint:biome lint:oxlint",
"strip-braces": "pnpm exec sg scan --rule .ast-grep/rules/strip-braces.yml -U"
"strip-braces": "pnpm exec sg scan --rule .ast-grep/rules/strip-braces.yml -U",
"test": "pnpm vitest run"
},
"dependencies": {
"@clack/prompts": "^1.5.1",
Expand All @@ -36,6 +37,7 @@
"oxlint": "^1.69.0",
"oxlint-tsgolint": "^0.23.0",
"tsx": "^4.22.4",
"typescript": "^6.0.3"
"typescript": "^6.0.3",
"vitest": "^4.1.8"
}
}
Loading