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
9 changes: 8 additions & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ jobs:
bun-version: latest
- name: Test
run: |
bun test
# `bun test` exits 1 when it matches no test files. Skip it while
# the repo has none rather than failing every run; the first test
# file added turns it back on by itself.
if git ls-files | grep -qE '\.(test|spec)\.(js|jsx|ts|tsx)$'; then
bun test
else
echo "no test files yet — skipping"
fi
build:
name: Build
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
validation:
name: Validation
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 7 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
bun test
# `bun test` exits 1 when it matches no test files, which blocks every
# commit in a repo that has none yet. Run it only when there is something
# to run — the first test file added turns it back on by itself.
if git ls-files | grep -qE '\.(test|spec)\.(js|jsx|ts|tsx)$'; then
bun test
fi

bun lint-staged
Loading