From 2168d6188490bc73d555aa30d0b2685a16a7146c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 14 Jan 2025 19:17:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8Bhttp-server.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/测http-server.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/测http-server.yaml b/.github/workflows/测http-server.yaml index 1e5c336..7dee398 100644 --- a/.github/workflows/测http-server.yaml +++ b/.github/workflows/测http-server.yaml @@ -12,5 +12,10 @@ jobs: - name: step1 run: | set -x - npx http-server -p=4251 ./gitea - curl -s http://localhost:4251/ \ No newline at end of file + mkdir -p gitea + echo '

hello world

' > gitea/index.html + npx http-server -p=4251 ./gitea & + SERVER_PID=$! + sleep 1 # 等待服务器启动 + curl -s http://localhost:4251/ + kill $SERVER_PID \ No newline at end of file