chore(ci): 新增單元測試 job 並更新 AI review token 參數

This commit is contained in:
Jeffery
2026-06-26 15:27:30 +08:00
parent 264be4de30
commit 6c0ed33ac5
+12 -1
View File
@@ -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 }}