浏览代码

added pipeline for reference key check

CPK 1 月之前
父节点
当前提交
c1ff258d81
共有 1 个文件被更改,包括 22 次插入0 次删除
  1. 22 0
      .github/workflows/localization-key-reference.yml

+ 22 - 0
.github/workflows/localization-key-reference.yml

@@ -0,0 +1,22 @@
+name: Localization Reference Key Check
+
+on:
+  push:
+    branches: [ "master" ]
+  pull_request:
+    branches: [ "master" ]
+
+jobs:
+  check-key-references:
+    name: "Check Localization Keys are referenced"
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: actions/setup-python@v5
+        with:
+          python-version: '3.13'
+          cache: 'pip'
+      - name: Install dependencies
+        run: pip install .github/workflows/localization/check-key-references.pip.txt
+      - name: Check Localization Key References
+        run: python .github/workflows/localization/check-key-references.py