From 9573ec3de7b3d968aacf9589d135a660fd4d1a08 Mon Sep 17 00:00:00 2001 From: chenshoulin Date: Mon, 19 Oct 2026 17:21:51 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=B7=BB=E5=8A=A0=20Gitea=20Actio?= =?UTF-8?q?ns=20=E6=A0=A1=E9=AA=8C=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 推送与合并请求依次执行 lint、typecheck、unit test 与生产构建 --- .gitea/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..6ab8730 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: 检出代码 + uses: actions/checkout@v4 + + - name: 准备 Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - name: 安装依赖 + run: npm ci + + - name: 代码检查 + run: npm run lint + + - name: 类型检查 + run: npm run typecheck + + - name: 单元测试 + run: npm run test + + - name: 生产构建 + run: npm run build