From 3fb0ed7fe19502653c80c4d80b3d74284625cd8d Mon Sep 17 00:00:00 2001 From: xcs Date: Wed, 22 Jul 2026 11:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/smoke.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/smoke.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .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