From 6c0ed33ac5aede7de5ac32f5cff6bf1a998230ce Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 26 Jun 2026 15:27:30 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=96=B0=E5=A2=9E=E5=96=AE?= =?UTF-8?q?=E5=85=83=E6=B8=AC=E8=A9=A6=20job=20=E4=B8=A6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20AI=20review=20token=20=E5=8F=83=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index b9d4eed..4177dfd 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -5,6 +5,17 @@ on: - master types: [opened, synchronize] jobs: + test: + name: Unit Test + runs-on: ubuntu + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + - name: 執行單元測試 + run: node --test + working-directory: app ai-code-review: name: AI Code Review runs-on: ubuntu @@ -16,4 +27,4 @@ jobs: - name: AI 程式碼審查 by OpenCode uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }} with: - comment_token: ${{ secrets.COMMENT_TOKEN }} + token: ${{ secrets.TOKEN }}