Add test step to build workflow

Inserts 'pnpm test' into both build jobs in the GitHub Actions workflow to ensure tests are run during CI before building artifacts.
This commit is contained in:
手瓜一十雪 2025-11-15 16:25:06 +08:00
parent d800466a30
commit 0b655db4dd

View File

@ -22,6 +22,7 @@ jobs:
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i
pnpm run typecheck || exit 1 pnpm run typecheck || exit 1
pnpm test || exit 1
pnpm --filter napcat-webui-frontend run build || exit 1 pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run build:framework pnpm run build:framework
mv packages/napcat-framework/dist framework-dist mv packages/napcat-framework/dist framework-dist
@ -46,8 +47,9 @@ jobs:
run: | run: |
npm i -g pnpm npm i -g pnpm
pnpm i pnpm i
pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run typecheck || exit 1 pnpm run typecheck || exit 1
pnpm test || exit 1
pnpm --filter napcat-webui-frontend run build || exit 1
pnpm run build:shell pnpm run build:shell
mv packages/napcat-shell/dist shell-dist mv packages/napcat-shell/dist shell-dist
cd shell-dist cd shell-dist