55 branches :
66 - main
77 paths :
8- - ' Firmware /**'
9- - ' Software /**'
8+ - ' firmware /**'
9+ - ' tools /**'
1010 - ' .github/workflows/code-quality.yml'
1111 push :
1212 branches :
1313 - main
1414 paths :
15- - ' Firmware /**'
16- - ' Software /**'
15+ - ' firmware /**'
16+ - ' tools /**'
1717 schedule :
1818 # 每天凌晨 2 点运行一次完整扫描
1919 - cron : ' 0 2 * * *'
@@ -71,22 +71,22 @@ jobs:
7171 with :
7272 node-version : ' 20'
7373 cache : ' pnpm'
74- cache-dependency-path : Software/binary-keyboard- studio-ui /pnpm-lock.yaml
74+ cache-dependency-path : tools/ studio/pnpm-lock.yaml
7575
7676 - name : Install dependencies
77- working-directory : Software/binary-keyboard- studio-ui
77+ working-directory : tools/ studio
7878 run : pnpm install
7979
8080 - name : Run ESLint
81- working-directory : Software/binary-keyboard- studio-ui
81+ working-directory : tools/ studio
8282 run : pnpm run lint || echo "ESLint check completed with warnings"
8383
8484 - name : Run TypeScript type check
85- working-directory : Software/binary-keyboard- studio-ui
85+ working-directory : tools/ studio
8686 run : pnpm run type-check
8787
8888 - name : Build check
89- working-directory : Software/binary-keyboard- studio-ui
89+ working-directory : tools/ studio
9090 run : pnpm run build-only
9191
9292 # C/C++ 代码质量检查
@@ -103,15 +103,15 @@ jobs:
103103 sudo apt-get update
104104 sudo apt-get install -y cppcheck
105105
106- - name : Run cppcheck on Firmware
106+ - name : Run cppcheck on firmware
107107 continue-on-error : true
108108 run : |
109109 cppcheck --enable=all --suppress=missingIncludeSystem \
110110 --xml --xml-version=2 \
111- Firmware /CH592F/ 2> cppcheck-result.xml || true
111+ firmware /CH592F/ 2> cppcheck-result.xml || true
112112 cppcheck --enable=all --suppress=missingIncludeSystem \
113113 --xml --xml-version=2 \
114- Firmware /CH552G/ 2> cppcheck-result2.xml || true
114+ firmware /CH552G/ 2> cppcheck-result2.xml || true
115115
116116 - name : Upload cppcheck results
117117 uses : actions/upload-artifact@v4
@@ -142,7 +142,7 @@ jobs:
142142 - name : Check code duplication (JavaScript/TypeScript)
143143 continue-on-error : true
144144 run : |
145- jscpd Software / --min-lines 5 --min-tokens 50 --format markdown > duplication-report.md || true
145+ jscpd tools/studio / --min-lines 5 --min-tokens 50 --format markdown > duplication-report.md || true
146146
147147 - name : Upload complexity report
148148 uses : actions/upload-artifact@v4
0 commit comments