Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

ci: parallelize jobs and add turbo cache persistence

Jiayuan Zhang2727ecd803e7
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 136068ef89..747d9a8bbd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,10 +6,13 @@ on:
pull_request:
branches: [main]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
jobs:
- ci:
+ lint:
runs-on: ubuntu-latest
-
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -27,12 +30,34 @@ jobs:
run: pnpm install
- name: Lint
- run: |
- pnpm --filter @multica/web lint
- pnpm --filter @multica/desktop lint
+ run: pnpm turbo lint
+
+ build-and-typecheck:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
- - name: Type check
- run: pnpm typecheck
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v4
- - name: Build
- run: pnpm build
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: Restore Turbo cache
+ uses: actions/cache@v4
+ with:
+ path: .turbo
+ key: turbo-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
+ restore-keys: |
+ turbo-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-
+ turbo-${{ runner.os }}-
+
+ - name: Build and type check
+ run: pnpm turbo build typecheck