Skip to content

Commit

Permalink
chore: switch to turborepo
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Nov 30, 2024
1 parent d3d5b66 commit 5b176bb
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 348 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Turborepo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -34,14 +42,14 @@ jobs:
run: npm ci

- name: Build
run: npm run build
run: turbo build

- name: Lint
if: ${{ matrix.version == 'current' }}
run: npm run lint
run: turbo lint

- name: Test
run: npm run test
run: turbo test

- name: Coveralls
uses: coverallsapp/github-action@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
logs
*.log
.DS_Store
.turbo/

# Coverage directory used by tools like istanbul
coverage
Expand Down
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'
import pluginJs from '@eslint/js'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import turbo from 'eslint-plugin-turbo'

const dirname = path.dirname(fileURLToPath(import.meta.url))

Expand Down Expand Up @@ -31,6 +32,7 @@ export default tseslint.config(
pluginJs.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
turbo.configs['flat/recommended'],
{
rules: {
// Only disabling these because this code is very old but also battle-tested,
Expand Down
Loading

0 comments on commit 5b176bb

Please sign in to comment.