Skip to content

Commit fd3c7c1

Browse files
author
Z User
committed
fix: 修复全部 8 条 GitHub Actions 警告
1. 添加 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true 消除 Node.js 20 弃用警告 2. 修复报告路径问题:确保命令行工具输出到正确的 build/reports/ 目录 3. 移除不兼容的 jwgmeligmeyling/spotbugs-github-action 和 pmd-github-action 4. 所有 upload-artifact 添加 if-no-files-found: warn 避免警告 5. 测试 Job 检测 src/test 目录是否存在,不存在时优雅跳过 6. Checkstyle 命令行模式生成 XML 报告到 build/reports/checkstyle/ 7. SpotBugs 命令行模式分别生成 XML 和 HTML 报告 8. ci.yml 同步添加 Node.js 24 环境变量
1 parent 432f11e commit fd3c7c1

2 files changed

Lines changed: 79 additions & 522 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ concurrency:
2626

2727
env:
2828
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Xmx2g"
29+
# 提前切换到 Node.js 24,消除 Node.js 20 弃用警告
30+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
2931

3032
jobs:
3133
build:

0 commit comments

Comments
 (0)