From a56c06e601bc1c9a4bb1255cdb3e5305ec4c6dee Mon Sep 17 00:00:00 2001 From: Sasha Mysak Date: Tue, 23 Jul 2024 20:44:31 +0200 Subject: [PATCH] remove macos --- .github/workflows/test.yml | 6 +----- package.json | 1 + packages/runner/test/console.test.ts | 4 ++-- vitest.config.ts | 1 + 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d085b0f74..956d8ccc5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,8 +15,6 @@ jobs: strategy: matrix: include: - - os: macos-latest - db_required: false - os: ubuntu-latest db_required: true - os: windows-latest @@ -59,10 +57,8 @@ jobs: run: | if [[ ${{ matrix.os }} == "windows-latest" ]]; then pnpm test:win - elif [[ ${{ matrix.os }} == "macos-latest" ]]; then - pnpm test --filter=!@codemod-com/backend else - pnpm build --filter @codemod-com/auth && pnpm build --filter @codemod-com/database && pnpm test + pnpm build --filter @codemod-com/backend && pnpm test fi shell: bash env: diff --git a/package.json b/package.json index b8cf78f23..4e8cf90e9 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "lint:write": "biome check --write --diagnostic-level=error .", "lint:linter": "biome lint --write --diagnostic-level=error .", "lint:formatter": "biome format --write --diagnostic-level=error .", + "test:silent": "pnpm run test:unit --silent && pnpm run test:backend --silent", "test": "pnpm run test:unit && pnpm run test:backend", "test:unit": "vitest run --exclude \"(apps/backend/**/*.*|packages/codemods/next/13/app-directory-boilerplate/test/test.win.ts)\"", "test:backend": "pnpm --filter @codemod-com/backend test", diff --git a/packages/runner/test/console.test.ts b/packages/runner/test/console.test.ts index fa674f8f9..86658c522 100644 --- a/packages/runner/test/console.test.ts +++ b/packages/runner/test/console.test.ts @@ -2,8 +2,8 @@ import { deepStrictEqual } from "node:assert"; import vm from "node:vm"; import type { ConsoleKind } from "@codemod-com/printer"; import { describe, it } from "vitest"; -import { buildVmConsole } from "../src/buildVmConsole.js"; -import { CONSOLE_OVERRIDE } from "../src/consoleOverride.js"; +import { CONSOLE_OVERRIDE } from "../src/constants.js"; +import { buildVmConsole } from "../src/engines/common.js"; describe("console", () => { it("should pick the console statements from the VM", async () => { diff --git a/vitest.config.ts b/vitest.config.ts index 9fcd539f7..8b482d250 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -27,6 +27,7 @@ export default defineConfig({ AWS_PUBLIC_BUCKET_NAME: "codemod-test", AWS_PRIVATE_BUCKET_NAME: "codemod-test", }, + exclude: [...configDefaults.exclude, "./packages/deprecated/**"], poolOptions: { vmThreads: { memoryLimit: 4096,