From 6d5f0cdc546deeba5383b6d8765d4e60854d7287 Mon Sep 17 00:00:00 2001 From: Davide Date: Mon, 23 Dec 2024 02:14:45 +0100 Subject: [PATCH] try fix tests --- .github/workflows/all_os.yml | 12 +++++++++--- apps/desktop/package.json | 2 +- package.json | 3 +-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/all_os.yml b/.github/workflows/all_os.yml index 670ce46f5..2d30e27d2 100644 --- a/.github/workflows/all_os.yml +++ b/.github/workflows/all_os.yml @@ -63,7 +63,9 @@ jobs: USER_AGENT_PREFIX: ${{ vars.USER_AGENT_PREFIX }} CURSEFORGE_API_KEY: "${{ vars.CURSEFORGE_API_KEY }}" CURSEFORGE_API_BASE: ${{ vars.CURSEFORGE_API_BASE }} - run: pnpm test + run: | + pnpm test + cargo test - name: Upload Playwright report uses: actions/upload-artifact@v4 if: always() @@ -136,7 +138,9 @@ jobs: USER_AGENT_PREFIX: ${{ vars.USER_AGENT_PREFIX }} CURSEFORGE_API_KEY: "${{ vars.CURSEFORGE_API_KEY }}" CURSEFORGE_API_BASE: ${{ vars.CURSEFORGE_API_BASE }} - run: pnpm test + run: | + xvfb-run --auto-servernum --server-args='-screen 0 1280x960x24' -- pnpm test + cargo test - name: Upload Playwright report if: always() uses: actions/upload-artifact@v4 @@ -224,7 +228,9 @@ jobs: CURSEFORGE_API_KEY: "${{ vars.CURSEFORGE_API_KEY }}" CURSEFORGE_API_BASE: ${{ vars.CURSEFORGE_API_BASE }} CARGO_NET_GIT_FETCH_WITH_CLI: true - run: pnpm test + run: | + pnpm test + cargo test - name: Upload Playwright report uses: actions/upload-artifact@v4 if: always() diff --git a/apps/desktop/package.json b/apps/desktop/package.json index d7cce05f1..976c82c71 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -11,7 +11,7 @@ "main": "dist/main/index.cjs", "scripts": { "dev": "node scripts/watch.mjs", - "test": "cross-env-shell DEBUG=pw:browser* xvfb-run playwright test", + "test": "cross-env-shell DEBUG=pw:browser* playwright test", "build-vite": "node scripts/build.mjs", "patch-version": "node scripts/monkeypatchVersion.mjs", "build-electron": "cross-env-shell DEBUG=electron-builder ow-electron-builder --config .electron-builder.config.cjs", diff --git a/package.json b/package.json index 06cf05ee7..5536119db 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,7 @@ "------divider-utils------": "------divider------", "lint": "turbo run lint --filter @gd/desktop --filter @gd/ui", "lint-fix": "turbo run lint-fix --filter @gd/desktop --filter @gd/ui", - "test": "turbo run test && cargo test", - "test-prod": "turbo run test --filter @gd/desktop", + "test": "turbo run test", "rspc-bindings:generate": "cargo run -p carbon_app -- --generate-ts-bindings", "------divider-prisma-generate-normal------": "------divider------", "prisma:generate": "cargo run -p prisma-cli -- generate --schema=./crates/carbon_app/prisma/schema.prisma",