测http-server.yaml
This commit is contained in:
1 parent
77d84a9788
commit
2168d61884
1 file changed
+7
-2
@@ -12,5 +12,10 @@ jobs:
|
|||||||
- name: step1
|
- name: step1
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
npx http-server -p=4251 ./gitea
|
mkdir -p gitea
|
||||||
curl -s http://localhost:4251/
|
echo '<h1>hello world</h1>' > gitea/index.html
|
||||||
|
npx http-server -p=4251 ./gitea &
|
||||||
|
SERVER_PID=$!
|
||||||
|
sleep 1 # 等待服务器启动
|
||||||
|
curl -s http://localhost:4251/
|
||||||
|
kill $SERVER_PID
|
||||||
Reference in new issue
Block a user