添加 .gitea/workflows/smoke.yml
smoke / bare (push) Successful in 2s
smoke / network (push) Successful in 1s
smoke / action (push) Successful in 5s

This commit is contained in:
xcs
2026-07-22 11:58:36 +08:00
commit 3fb0ed7fe1
+31
View File
@@ -0,0 +1,31 @@
name: smoke
on: [push, workflow_dispatch]
jobs:
bare:
runs-on: ubuntu-latest
steps:
- name: 环境信息
run: |
echo "时间 : $(date)"
echo "CPU : $(nproc) 核"
echo "内存 : $(free -h | awk 'NR==2{print $2}')"
echo "磁盘 : $(df -h / | awk 'NR==2{print $4}') 可用"
network:
runs-on: ubuntu-latest
steps:
- name: 回连 Gitea
run: |
curl -fsS --max-time 15 "${{ gitea.server_url }}/api/healthz"
echo "回连正常"
action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 确认代码检出
run: |
ls -la
git log -1 --oneline