From a1dd02310c8eea4ccad077fb5a7a812afe5aaa3b Mon Sep 17 00:00:00 2001 From: Paper Burner Bot Date: Sat, 1 Nov 2025 01:21:46 +0800 Subject: [PATCH] =?UTF-8?q?ci(test):=20=E4=B8=BA=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=B3=A8=E5=85=A5=20DATABASE=5FURL=20?= =?UTF-8?q?=E4=B8=8E=20JWT=5FSECRET=EF=BC=8C=E9=81=BF=E5=85=8D=20Prisma=20?= =?UTF-8?q?=E5=9C=A8=20test=20=E7=8E=AF=E5=A2=83=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index f23f6ec2..0f8c68a6 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -133,8 +133,10 @@ jobs: exit 1 fi - - name: Run unit tests - working-directory: ./server - env: - NODE_ENV: test - run: npm test + - name: Run unit tests + working-directory: ./server + env: + NODE_ENV: test + DATABASE_URL: postgresql://test:test@localhost:5432/test + JWT_SECRET: test-secret-key-for-ci + run: npm test