.github/workflows/测http-server.yaml

This commit is contained in:
严浩
2025-01-14 19:24:37 +08:00
parent b8bc2de654
commit 3045dae060

View File

@@ -14,6 +14,7 @@ jobs:
set -x set -x
mkdir -p gitea mkdir -p gitea
echo '<h1>hello world</h1>' > gitea/index.html echo '<h1>hello world</h1>' > gitea/index.html
npm install -g http-server
npx http-server -p=4251 ./gitea & npx http-server -p=4251 ./gitea &
SERVER_PID=$! SERVER_PID=$!
sleep 10 # 等待服务器启动 sleep 10 # 等待服务器启动