Skip to content

Commit

Permalink
Revert "ci: Run tests on push (#807)" (#808)
Browse files Browse the repository at this point in the history
This reverts commit 39358b1.
  • Loading branch information
MohamedBassem authored Jan 2, 2025
1 parent 39358b1 commit eb0d821
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,6 @@ jobs:

- name: Typecheck
run: pnpm typecheck
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Tests
run: pnpm test
open-api-spec:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/db/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") });
}
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions packages/trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
2 changes: 0 additions & 2 deletions packages/trpc/testUtils.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"node_modules/.cache/tsbuildinfo.json"
]
},
"test": {},
"clean": {
"cache": false
},
Expand Down

0 comments on commit eb0d821

Please sign in to comment.