A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
Revert "ci: Run tests on push (#807)" (#808)
Mohamed Bassemeb0d82159060
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 127c7990..8216c7cf 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -48,16 +48,6 @@ jobs:- name: Typecheckrun: pnpm typecheck- tests:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4-- - name: Setup- uses: ./tooling/github/setup-- - name: Tests- run: pnpm testopen-api-spec:runs-on: ubuntu-lateststeps:diff --git a/apps/web/package.json b/apps/web/package.jsonindex d78b1d4d..ec0a3bd2 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -10,6 +10,7 @@"build": "next build","start": "next start","lint": "next lint",+ "test": "vitest","typecheck": "tsc --noEmit","format": "prettier --check . --ignore-path ../../.gitignore","format:fix": "prettier --write . --ignore-path ../../.gitignore",diff --git a/package.json b/package.jsonindex c9ad5633..66bfbaee 100644--- a/package.json+++ b/package.json@@ -19,8 +19,7 @@"lint:fix": "turbo --no-daemon lint --continue -- --fix --cache-location node_modules/.cache/.eslintcache","lint:ws": "pnpm dlx sherif@latest","postinstall": "pnpm lint:ws",- "typecheck": "turbo --no-daemon typecheck",- "test": "turbo --no-daemon test --continue"+ "typecheck": "turbo --no-daemon typecheck"},"devDependencies": {"@hoarder/prettier-config": "workspace:^0.1.0",diff --git a/packages/db/drizzle.ts b/packages/db/drizzle.tsindex 037f7c35..4763d9d7 100644--- a/packages/db/drizzle.ts+++ b/packages/db/drizzle.ts@@ -12,7 +12,7 @@ export const db = drizzle(sqlite, { schema });export function getInMemoryDB(runMigrations: boolean) {const mem = new Database(":memory:");- const db = drizzle(mem, { schema, logger: false });+ const db = drizzle(mem, { schema, logger: true });if (runMigrations) {migrate(db, { migrationsFolder: path.resolve(__dirname, "./drizzle") });}diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex b5a001b9..93d5495a 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -26,8 +26,7 @@"format:fix": "prettier . --write --ignore-path ../../.prettierignore","lint": "eslint .","lint:fix": "eslint . --fix",- "test": "vitest run",- "test:watch": "vitest"+ "test": "vitest"},"main": "index.ts","eslintConfig": {diff --git a/packages/trpc/package.json b/packages/trpc/package.jsonindex 00652b8d..0e1721f1 100644--- a/packages/trpc/package.json+++ b/packages/trpc/package.json@@ -10,8 +10,7 @@"format:fix": "prettier . --write --ignore-path ../../.prettierignore","lint": "eslint .","lint:fix": "eslint . --fix",- "test": "vitest run",- "test:watch": "vitest"+ "test": "vitest"},"dependencies": {"@hoarder/db": "workspace:*",diff --git a/packages/trpc/testUtils.ts b/packages/trpc/testUtils.tsindex 6d7e6dee..23dcdb33 100644--- a/packages/trpc/testUtils.ts+++ b/packages/trpc/testUtils.ts@@ -1,6 +1,5 @@import { getInMemoryDB } from "@hoarder/db/drizzle";import { users } from "@hoarder/db/schema";-import { runQueueDBMigrations } from "@hoarder/shared/queues";import { createCallerFactory } from "./index";import { appRouter } from "./routers/_app";@@ -55,7 +54,6 @@ export interface CustomTestContext {export async function buildTestContext(seedDB: boolean,): Promise<CustomTestContext> {- runQueueDBMigrations();const db = getTestDB();let users: Awaited<ReturnType<typeof seedUsers>> = [];if (seedDB) {diff --git a/turbo.json b/turbo.jsonindex 7256d8e2..3422151b 100644--- a/turbo.json+++ b/turbo.json@@ -48,7 +48,6 @@"node_modules/.cache/tsbuildinfo.json"]},- "test": {},"clean": {"cache": false},