From 2c4f024067f76d69a741969666eb899e6ce75372 Mon Sep 17 00:00:00 2001 From: Sahil Date: Fri, 17 Oct 2025 04:08:14 +0530 Subject: [PATCH 1/2] feat: add CI workflow --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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..7e9a12e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: apps/desktop/package-lock.json + + - name: Install dependencies + working-directory: apps/desktop + run: npm ci + + - name: Run TypeScript check + working-directory: apps/desktop + run: npx tsc --noEmit + + - name: Run ESLint + working-directory: apps/desktop + run: npm run lint + + - name: Run Vite build + working-directory: apps/desktop + run: npm run build From de2e63025ae11699d1873e6387b53a4949b47847 Mon Sep 17 00:00:00 2001 From: Sahil Date: Sat, 18 Oct 2025 14:16:46 +0530 Subject: [PATCH 2/2] feat: bun --- .github/workflows/ci.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e9a12e..1ccf067 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,25 +14,32 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 with: - node-version: '20' - cache: 'npm' - cache-dependency-path: apps/desktop/package-lock.json + bun-version: latest + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy - name: Install dependencies working-directory: apps/desktop - run: npm ci + run: bun install - name: Run TypeScript check working-directory: apps/desktop - run: npx tsc --noEmit + run: bun run tsc --noEmit - name: Run ESLint working-directory: apps/desktop - run: npm run lint + run: bun run lint - name: Run Vite build working-directory: apps/desktop - run: npm run build + run: bun run build + + - name: Run Tauri build + working-directory: apps/desktop + run: bun run tauri build