From e0a54e7f9960c53bf842bddc4dc10d848b435908 Mon Sep 17 00:00:00 2001 From: Sreekar Nutulapati Date: Fri, 24 Jul 2026 19:58:29 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20add=20ci=20to=20check=20li?= =?UTF-8?q?nt=20across=20apps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 100 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5c38891 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,100 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + api: + name: API + runs-on: ubuntu-24.04 + + defaults: + run: + working-directory: api + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + enable-cache: true + + - name: Set up Python + run: uv python install 3.12 + + - name: Install dependencies + run: uv sync --locked + + - name: Lint + run: uv run ruff check . + + desktop: + name: Desktop + runs-on: ubuntu-24.04 + + defaults: + run: + working-directory: desktop + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Set up pnpm + uses: pnpm/action-setup@v6 + with: + version: 11.10.0 + + - name: Set up Node + uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + cache-dependency-path: desktop/pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Typecheck + run: pnpm typecheck + + - name: Lint + run: pnpm lint + + extension: + name: Extension + runs-on: ubuntu-24.04 + + defaults: + run: + working-directory: extension + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Set up pnpm + uses: pnpm/action-setup@v6 + with: + version: 11.10.0 + + - name: Set up Node + uses: actions/setup-node@v7 + with: + node-version: 24 + cache: pnpm + cache-dependency-path: extension/pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Typecheck + run: pnpm typecheck + + - name: Lint + run: pnpm lint