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: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ permissions:
contents: read

jobs:
unit:
name: unit
ci:
name: format + typecheck + test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -27,5 +27,11 @@ jobs:
git config --global user.email "ci@frankencode"
git config --global user.name "frankencode-ci"

- name: Run unit tests
- name: Format check
run: bun prettier --check "packages/opencode/src/**/*.ts" "packages/plugin/src/**/*.ts"

- name: Typecheck
run: bun turbo typecheck

- name: Unit tests
run: bun turbo test
18 changes: 0 additions & 18 deletions .github/workflows/typecheck.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/sh
set -e

# Autoformat staged files
bun prettier --write "packages/opencode/src/**/*.ts" "packages/plugin/src/**/*.ts"
git update-index --again

# Typecheck
bun turbo typecheck
bun turbo typecheck 2>&1 | tail -5

# Unit tests
bun turbo test
# Unit tests (quiet — show only summary)
bun turbo test 2>&1 | grep -E '(pass|fail|error|Tasks:|FAIL)' | tail -10
3 changes: 2 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ if (process.versions.bun !== expectedBunVersion) {
console.warn(`Warning: Bun version ${process.versions.bun} differs from expected ${expectedBunVersion}`);
}
'
bun typecheck
bun turbo typecheck
bun turbo test
141 changes: 0 additions & 141 deletions README.ar.md

This file was deleted.

141 changes: 0 additions & 141 deletions README.bn.md

This file was deleted.

Loading
Loading