Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔨 chore: add desktop test workflow (#10024)

Arvin Xu665e6c99f5ca
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6e7055e8303..218abffa5ce 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -54,7 +54,7 @@ jobs:
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
- KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
+ KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 51d2d6bb480..ec28b20eb17 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -119,6 +119,43 @@ jobs:
files: ./coverage/app/lcov.info
flags: app
+ test-desktop:
+ name: Test Desktop App
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v5
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v6
+ with:
+ node-version: 24
+ package-manager-cache: false
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 10
+
+ - name: Install deps
+ run: pnpm install
+ working-directory: apps/desktop
+ env:
+ NODE_OPTIONS: --max-old-space-size=6144
+
+
+ - name: Test Desktop Client
+ run: pnpm test
+ working-directory: apps/desktop
+
+ - name: Upload Desktop App Coverage to Codecov
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: ./apps/desktop/coverage/lcov.info
+ flags: desktop
+
test-databsae:
name: Test Database
@@ -156,7 +193,7 @@ jobs:
- name: Test Client DB
run: pnpm --filter @lobechat/database test:client-db
env:
- KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
+ KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com
@@ -165,7 +202,7 @@ jobs:
env:
DATABASE_TEST_URL: postgresql://postgres:postgres@localhost:5432/postgres
DATABASE_DRIVER: node
- KEY_VAULTS_SECRET: LA7n9k3JdEcbSgml2sxfw+4TV1AzaaFU5+R176aQz4s=
+ KEY_VAULTS_SECRET: Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
S3_PUBLIC_DOMAIN: https://example.com
APP_URL: https://home.com