test-reporter icon indicating copy to clipboard operation
test-reporter copied to clipboard

Disabling git ls-files

Open hojalot opened this issue 2 years ago • 3 comments

We have a repo with over 25k files and the output of "git ls-files", possibly from dist/index.js call to listFiles(), adds significant noise to our logs. Is there a way to disable this feature?

hojalot avatar Apr 19 '22 16:04 hojalot

+1. We run tests from jar and don't need "git ls-files". But obviously - "git ..." also fails (since there was no checkout step before)

sergeidyga avatar Apr 21 '22 09:04 sergeidyga

We want to disable "git ..." too. Because of this, we cannot run the action in a separated yaml file through artifacts since it requires a git repository.

kudos3939 avatar Dec 02 '22 08:12 kudos3939

This issue addresses the git ls-files step: https://github.com/dorny/test-reporter/issues/210 Max annotations needs to be set to 0 when using the action.

However, it does not create annotations, but I saw that with the java-junit reporter. I'm not sure how it is with other reporters.

Example

- uses: dorny/test-reporter@v1
      with:
        artifact: test-results            # artifact name
        name: JEST Tests                  # Name of the check run which will be created
        path: '*.xml'                     # Path to test results (inside artifact .zip)
        reporter: jest-junit              # Format of test results
        max-annotations: 0

mesporas-talis avatar Jun 08 '23 22:06 mesporas-talis