Skip to content

Commit eb0d821

Browse files
Revert "ci: Run tests on push (hoarder-app#807)" (hoarder-app#808)
This reverts commit 39358b1.
1 parent 39358b1 commit eb0d821

File tree

8 files changed

+5
-20
lines changed

8 files changed

+5
-20
lines changed

.github/workflows/ci.yml

-10
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ jobs:
4848

4949
- name: Typecheck
5050
run: pnpm typecheck
51-
tests:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v4
55-
56-
- name: Setup
57-
uses: ./tooling/github/setup
58-
59-
- name: Tests
60-
run: pnpm test
6151
open-api-spec:
6252
runs-on: ubuntu-latest
6353
steps:

apps/web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build": "next build",
1111
"start": "next start",
1212
"lint": "next lint",
13+
"test": "vitest",
1314
"typecheck": "tsc --noEmit",
1415
"format": "prettier --check . --ignore-path ../../.gitignore",
1516
"format:fix": "prettier --write . --ignore-path ../../.gitignore",

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"lint:fix": "turbo --no-daemon lint --continue -- --fix --cache-location node_modules/.cache/.eslintcache",
2020
"lint:ws": "pnpm dlx sherif@latest",
2121
"postinstall": "pnpm lint:ws",
22-
"typecheck": "turbo --no-daemon typecheck",
23-
"test": "turbo --no-daemon test --continue"
22+
"typecheck": "turbo --no-daemon typecheck"
2423
},
2524
"devDependencies": {
2625
"@hoarder/prettier-config": "workspace:^0.1.0",

packages/db/drizzle.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const db = drizzle(sqlite, { schema });
1212

1313
export function getInMemoryDB(runMigrations: boolean) {
1414
const mem = new Database(":memory:");
15-
const db = drizzle(mem, { schema, logger: false });
15+
const db = drizzle(mem, { schema, logger: true });
1616
if (runMigrations) {
1717
migrate(db, { migrationsFolder: path.resolve(__dirname, "./drizzle") });
1818
}

packages/shared/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
2727
"lint": "eslint .",
2828
"lint:fix": "eslint . --fix",
29-
"test": "vitest run",
30-
"test:watch": "vitest"
29+
"test": "vitest"
3130
},
3231
"main": "index.ts",
3332
"eslintConfig": {

packages/trpc/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
1111
"lint": "eslint .",
1212
"lint:fix": "eslint . --fix",
13-
"test": "vitest run",
14-
"test:watch": "vitest"
13+
"test": "vitest"
1514
},
1615
"dependencies": {
1716
"@hoarder/db": "workspace:*",

packages/trpc/testUtils.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { getInMemoryDB } from "@hoarder/db/drizzle";
22
import { users } from "@hoarder/db/schema";
3-
import { runQueueDBMigrations } from "@hoarder/shared/queues";
43

54
import { createCallerFactory } from "./index";
65
import { appRouter } from "./routers/_app";
@@ -55,7 +54,6 @@ export interface CustomTestContext {
5554
export async function buildTestContext(
5655
seedDB: boolean,
5756
): Promise<CustomTestContext> {
58-
runQueueDBMigrations();
5957
const db = getTestDB();
6058
let users: Awaited<ReturnType<typeof seedUsers>> = [];
6159
if (seedDB) {

turbo.json

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"node_modules/.cache/tsbuildinfo.json"
4949
]
5050
},
51-
"test": {},
5251
"clean": {
5352
"cache": false
5453
},

0 commit comments

Comments
 (0)