From b992443a99d7c8281d6ff3e24f4b628dc724dac8 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 19 Oct 2024 17:27:00 -0400 Subject: [PATCH] Make a separate npm script for ci --- .gitea/workflows/test.yaml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 6cf49fe..dde8e22 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -26,6 +26,6 @@ jobs: env: NODE_OPTIONS=--max-old-space-size=8192 run: | npm install - npm run test + npm run ci npm ci npx playwright test diff --git a/package.json b/package.json index 60c9130..e980528 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start": "remix-serve ./build/server/index.js", "typecheck": "tsc", "watch": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d --remove-orphans && jest --watch --config=jest.config.ts", - "test": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d --remove-orphans && sleep 5 && jest --config=jest.config.ts" + "test": "export $(cat .env.test | xargs) && docker compose -f docker-compose-test.yaml up database -d --remove-orphans && sleep 5 && jest --config=jest.config.ts", + "ci": "export $(cat .env.test | xargs) && jest --config=jest.config.ts" }, "dependencies": { "@remix-pwa/sw": "^3.0.9",