4

Recently I migrate from 3 different repos to one monorepo and setup folowing .codecov.yml adding flags option. However, Codecov seems to ignore it and keeps reporting that no flags where provided.

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

comment:
  require_changes: yes

flags:
  frontend:
    paths:
      - frontend/
  backend:
    paths:
      - backend/
  mobile:
    paths:
      - mobile/

Any ideas what else I should add to enable them?

daniula
  • 6,898
  • 4
  • 32
  • 49

1 Answers1

3

The file must be named codecov.yml, without the leading dot. See also Codecov documentation:

Can I name the file .codecov.yml?

No. Starting the file with a period can cause issues detecting and reading it. The file must be placed the root of your repository to be detected. If you want to place it elsewhere, you must pass -y <conf file> to the bash uploader.

giordano
  • 8,087
  • 3
  • 23
  • 48