diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e12adf21..a5f40014 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/lefthook.yml b/lefthook.yml index 0ef91ecd..5bd78aa6 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -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 diff --git a/lefthook/turborepo.yml b/lefthook/turborepo.yml new file mode 100644 index 00000000..0ef91ecd --- /dev/null +++ b/lefthook/turborepo.yml @@ -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