测sparse-checkout.yaml
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