commit 3fb0ed7fe19502653c80c4d80b3d74284625cd8d Author: xcs Date: Wed Jul 22 11:58:36 2026 +0800 添加 .gitea/workflows/smoke.yml diff --git a/.gitea/workflows/smoke.yml b/.gitea/workflows/smoke.yml new file mode 100644 index 0000000..ef5b82a --- /dev/null +++ b/.gitea/workflows/smoke.yml @@ -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 \ No newline at end of file