diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ea9116..290b402 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,13 +13,13 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 18.19.0 - name: Install bun - run: npm install --global bun + run: bun install --global bun - name: Install dependencies run: bun install - name: Run test - run: bun run test + run: bun run test:e2e diff --git a/app.ts b/app.ts index 4e0d5ba..c62b23e 100644 --- a/app.ts +++ b/app.ts @@ -1,4 +1,5 @@ import startServer, { server } from "./server"; +import 'ajv/dist/core'; startServer().catch(console.error); diff --git a/package.json b/package.json index 86afd94..f87e3c8 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "test:server": "NODE_DEVELOPMENT=test bun run app.ts", "test:e2e": "wait-on -l tcp:3000 && stepci run workflow.yml", "generate": "stepci generate ./specs/openapi.yaml ./specs/generated.yaml", + "preinstall": "npm install ajv@^8.6.0", "start": "bun app.ts", "start:prod": "node dist/app.js", "test": "bunx vitest run",