From 9b2b5654b9de00dbcdf3b52c000df4d516fd73c3 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Thu, 18 Apr 2024 15:17:23 +0800 Subject: [PATCH] debug: ci 10 --- .github/workflows/node.js.yml | 4 ++++ packages/test/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c144e14..ed67242 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,6 +29,10 @@ jobs: - run: pnpm install - run: cd packages/test && pnpm exec playwright install - run: cd packages/test/server && go get + - run: lsof -i tcp:8091 + - run: lsof -i tcp:8092 + - run: curl -v http://localhost:8091 + - run: curl -v http://localhost:8092/api/get-return-headers - run: pnpm run test env: NODE_OPTIONS: --dns-result-order=ipv4first diff --git a/packages/test/package.json b/packages/test/package.json index 1d2142c..ba093cb 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "vite --host", "check-type": "tsc -p tsconfig.json", - "test": "./tests/before-test.sh && echo $NODE_OPTIONS && lsof -i tcp:8091 && lsof -i tcp:8092 && curl -v http://localhost:8091 && curl -v http://localhost:8092/api/get-return-headers && vitest --run node-tests/*.spec.ts && playwright test tests/*.spec.ts && ./tests/after-test.sh", + "test": "./tests/before-test.sh && echo $NODE_OPTIONS && vitest --run node-tests/*.spec.ts && playwright test tests/*.spec.ts && ./tests/after-test.sh", "test-node": "vitest --run node-tests/*.spec.ts", "test-node:watch": "vitest node-tests/*.spec.ts" },