
Some checks failed
/ test-httpserver (push) Failing after 4s
/ test-timezone (push) Successful in 5s
/ Cache-Java-Test (push) Successful in -38s
/ opt_hostedtoolcache (push) Successful in -9s
/ job1 (push) Successful in -39s
/ job3 (push) Has been skipped
/ job2 (push) Successful in 2s
/ hashFiles (push) Successful in -9s
/ go-hashfiles (push) Successful in 34s
22 lines
476 B
YAML
22 lines
476 B
YAML
on:
|
|
push:
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
env:
|
|
TZ: Asia/Shanghai
|
|
jobs:
|
|
test-httpserver:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: step1
|
|
run: |
|
|
set -x
|
|
mkdir -p gitea
|
|
echo '<h1>hello world</h1>' > gitea/index.html
|
|
npx http-server -p=4251 ./gitea &
|
|
# SERVER_PID=$!
|
|
# sleep 1 # 等待服务器启动
|
|
curl http://localhost:4251/ -v
|
|
# kill $SERVER_PID
|
|
- run: echo "DONE" |