chore(ci): 新增單元測試 job 並更新 AI review token 參數
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user