瀏覽代碼

ci: test the language tool and recheck PRs retargeted to next

Run the language tool's unit tests in the generated sources workflow, and
also run it when a pull request is edited, so a PR that is retargeted from
main to next is checked without needing another push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jamesread 21 小時之前
父節點
當前提交
95acede208
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  1. 5 0
      .github/workflows/generated.yml

+ 5 - 0
.github/workflows/generated.yml

@@ -18,6 +18,7 @@ on:
       - 'service/Makefile'
       - 'service/Makefile'
       - 'service/tools.go'
       - 'service/tools.go'
   pull_request:
   pull_request:
+    types: [opened, synchronize, reopened, edited]
     branches:
     branches:
       - next
       - next
     paths:
     paths:
@@ -54,5 +55,9 @@ jobs:
             service/go.sum
             service/go.sum
             lang/go.sum
             lang/go.sum
 
 
+      - name: Test language tool
+        run: go test ./...
+        working-directory: lang
+
       - name: Check generated sources
       - name: Check generated sources
         run: make generated-check
         run: make generated-check