How do I ignore an entire directory of files or namespace of files? #648
Answered
by
danielpalme
BenjaminMichaelis
asked this question in
Q&A
-
I have a directory under my I am currently doing the following in my actions: - name: ReportGenerator
uses: danielpalme/[email protected]
with:
reports: '**/coverage.cobertura.xml'
targetdir: coveragereport
reporttypes: MarkdownSummaryGithub
classfilters: Foo.Thing.Migrations
filefilters: "*Migrations*" but in the summary markdown it still includes the output from that directory in the calculations: CoverageFoo.Thing- 0%
How do I avoid this from being included? |
Beta Was this translation helpful? Give feedback.
Answered by
danielpalme
Feb 4, 2024
Replies: 1 comment 1 reply
-
@BenjaminMichaelis This should work: - name: ReportGenerator
uses: danielpalme/[email protected]
with:
reports: '**/coverage.cobertura.xml'
targetdir: coveragereport
reporttypes: MarkdownSummaryGithub
classfilters: -Foo.Thing.Migrations
filefilters: "-*Migrations*" See also: https://reportgenerator.io/usage |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BenjaminMichaelis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BenjaminMichaelis
You are missing a little detail in your filters. They need to start with a "+" or "-".
This should work:
See also: https://reportgenerator.io/usage