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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

jobs:
test:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
Expand Down
26 changes: 2 additions & 24 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@
pre-commit:
parallel: true
jobs:
- name: jscheck
run: pnpm rr jscheck --fix-staged
stage_fixed: true

- name: tscheck
run: pnpm turbo run test:types --filter='...[HEAD]'
glob:
- "*.{ts,tsx}"
- "tsconfig.json"

pre-push:
jobs:
- name: test
run: |
branch="$(git branch --show-current)"

if [ "$branch" = "main" ]; then
pnpm turbo run test --filter='...[HEAD^]'
else
pnpm turbo run test --affected
fi
extends:
- lefthook/turborepo.yml
24 changes: 24 additions & 0 deletions lefthook/turborepo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pre-commit:
parallel: true
jobs:
- name: jscheck
run: pnpm rr jscheck --fix-staged
stage_fixed: true

- name: tscheck
run: pnpm turbo run test:types --filter='...[HEAD]'
glob:
- "*.{ts,tsx}"
- "tsconfig.json"

pre-push:
jobs:
- name: test
run: |
branch="$(git branch --show-current)"

if [ "$branch" = "main" ]; then
pnpm turbo run test --filter='...[HEAD^]'
else
pnpm turbo run test --affected
fi
Loading