.github/workflows/测http-server.yaml

This commit is contained in:
严浩
2025-01-14 19:24:15 +08:00
parent e49930a650
commit b8bc2de654

View File

@@ -15,8 +15,8 @@ jobs:
mkdir -p gitea mkdir -p gitea
echo '<h1>hello world</h1>' > gitea/index.html echo '<h1>hello world</h1>' > gitea/index.html
npx http-server -p=4251 ./gitea & npx http-server -p=4251 ./gitea &
# SERVER_PID=$! SERVER_PID=$!
# sleep 1 # 等待服务器启动 sleep 10 # 等待服务器启动
curl http://localhost:4251/ -v curl http://localhost:4251/ -v
# kill $SERVER_PID kill $SERVER_PID
- run: echo "DONE" - run: echo "DONE"