diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..3e8d710 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,23 @@ +name: 测试 CI +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: 拉取代码 + uses: https://git.catscavern.com/actions/checkout@v4 + + - name: 看看服务器 + run: | + echo "🐧 系统信息" + uname -a + echo "💻 CPU: $(nproc) 🧠 内存: $(free -h | grep Mem | awk '{print $2}')" + echo "💾 磁盘: $(df -h / | tail -1 | awk '{print $2}')" + + - name: 保存信息 + uses: https://git.catscavern.com/actions/upload-artifact@v3 + if: always() + with: + name: sysinfo + path: /proc/cpuinfo