From b7fecd4bc8d2f97792890629971a567929d698c8 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Mon, 22 Jul 2024 20:52:51 +0100 Subject: [PATCH] ci: add test:ci command --- .github/workflows/deployment.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 2176b2c..0bdf068 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -181,7 +181,7 @@ jobs: - name: 🧪 Test env: DATABASE_URL: ${{ secrets.DATABASE_URL }} - run: npm test + run: npm run test:ci build: name: 🐳 Build diff --git a/package.json b/package.json index e639650..32d2917 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "docker": "prisma migrate deploy && prisma generate && prisma db seed && npm run start", "prettier": "prettier app --check --end-of-line auto", "test": "env-cmd -f .test.env vitest", + "test:ci": "vitest", "test:db:create": "env-cmd -f .test.env npx prisma migrate dev" }, "dependencies": {