添加 .gitea/workflows/smoke.yml
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user