测sparse-checkout.yaml
All checks were successful
/ test-timezone (push) Successful in 3s
/ hashFiles (push) Successful in 5s
/ go-hashfiles (push) Successful in 26s
/ Cache-Java-Test (push) Successful in 38s
/ opt_hostedtoolcache (push) Successful in 2s
/ job3 (push) Has been skipped
/ job1 (push) Successful in -27s
/ job2 (push) Successful in -3s
All checks were successful
/ test-timezone (push) Successful in 3s
/ hashFiles (push) Successful in 5s
/ go-hashfiles (push) Successful in 26s
/ Cache-Java-Test (push) Successful in 38s
/ opt_hostedtoolcache (push) Successful in 2s
/ job3 (push) Has been skipped
/ job1 (push) Successful in -27s
/ job2 (push) Successful in -3s
This commit is contained in:
23
.github/workflows/测http-server.yaml
vendored
23
.github/workflows/测http-server.yaml
vendored
@ -1,23 +0,0 @@
|
||||
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
|
||||
npm install -g http-server
|
||||
npx http-server -p=4251 ./gitea &
|
||||
SERVER_PID=$!
|
||||
sleep 10 # 等待服务器启动
|
||||
curl http://localhost:4251/ -v
|
||||
kill $SERVER_PID
|
||||
- run: echo "DONE"
|
30
.github/workflows/测sparse-checkout.yaml
vendored
Normal file
30
.github/workflows/测sparse-checkout.yaml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
on:
|
||||
push:
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
env:
|
||||
TZ: Asia/Shanghai
|
||||
jobs:
|
||||
job1:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 📥 检出代码
|
||||
uses: actions/checkout@main
|
||||
with:
|
||||
lfs: false
|
||||
sparse-checkout: |
|
||||
README.md
|
||||
sparse-checkout-cone-mode: false
|
||||
- run: ls -al
|
||||
job2:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 📥 检出代码
|
||||
uses: actions/checkout@main
|
||||
with:
|
||||
lfs: false
|
||||
sparse-checkout: |
|
||||
README.md
|
||||
sparse-checkout-cone-mode: true
|
||||
- run: ls -al
|
Reference in New Issue
Block a user