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
12 changes: 12 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ jobs:
run: bun install --frozen-lockfile
- name: Check for clutter
run: bun run check:clutter
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .bun-version
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run tests
run: bun test --coverage
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Finder (MacOS) folder config
.DS_Store
db.sqlite3

# test databases
test-*.sqlite3
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test]
coverageThreshold = 0.90
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "./node_modules/knip/schema.json",
"entry": ["src/index.ts", "test.ts"]
"entry": ["src/index.ts"]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"check:clutter": "knip",
"migrate": "bun run migrate.ts",
"makemigration": "bunx drizzle-kit generate --name",
"dev": "bun run --watch src/index.ts"
"dev": "bun run --watch src/index.ts",
"test": "bun test",
"test:watch": "bun test --watch",
"test:coverage": "bun test --coverage"
},
"lint-staged": {
"*.ts": [
Expand Down
38 changes: 0 additions & 38 deletions test.ts

This file was deleted.

Loading