Codecov 无法识别 codecov.yml 配置中的标志

dan*_*ula 5 monorepo codecov

最近,我从 3 个不同的存储库迁移到一个单一存储库,并按照添加.codecov.yml选项进行设置flags。然而,Codecov 似乎忽略了它并不断报告没有提供任何标志。

coverage:
  status:
    project: no
    patch: yes
    changes: no

comment:
  require_changes: yes

flags:
  frontend:
    paths:
      - frontend/
  backend:
    paths:
      - backend/
  mobile:
    paths:
      - mobile/
Run Code Online (Sandbox Code Playgroud)

还有什么想法我还应该添加什么来启用它们吗?

gio*_*ano 3

该文件必须命名为codecov.yml,不带前导点。另请参阅Codecov 文档

我可以命名该文件.codecov.yml吗?

。以句点开头的文件可能会导致检测和读取文件时出现问题。该文件必须放置在要检测的存储库的根目录中。如果你想把它放在其他地方,你必须传递-y <conf file>给 bash 上传者。