测http-server.yaml
All checks were successful
/ job3 (push) Has been skipped
/ job2 (push) Successful in -40s
/ job1 (push) Successful in -40s
/ Cache-Java-Test (push) Successful in -6s
/ opt_hostedtoolcache (push) Successful in 3s
/ test-timezone (push) Successful in 4s
/ hashFiles (push) Successful in -40s
/ go-hashfiles (push) Successful in 42s
All checks were successful
/ job3 (push) Has been skipped
/ job2 (push) Successful in -40s
/ job1 (push) Successful in -40s
/ Cache-Java-Test (push) Successful in -6s
/ opt_hostedtoolcache (push) Successful in 3s
/ test-timezone (push) Successful in 4s
/ hashFiles (push) Successful in -40s
/ go-hashfiles (push) Successful in 42s
This commit is contained in:
9
.github/workflows/测http-server.yaml
vendored
9
.github/workflows/测http-server.yaml
vendored
@ -12,5 +12,10 @@ jobs:
|
||||
- name: step1
|
||||
run: |
|
||||
set -x
|
||||
npx http-server -p=4251 ./gitea
|
||||
curl -s http://localhost:4251/
|
||||
mkdir -p gitea
|
||||
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