Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling git ls-files #169

Open
hojalot opened this issue Apr 19, 2022 · 4 comments
Open

Disabling git ls-files #169

hojalot opened this issue Apr 19, 2022 · 4 comments

Comments

@hojalot
Copy link

hojalot commented Apr 19, 2022

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?

@sergeidyga
Copy link

+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)

@kudos3939
Copy link

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.

@mesporas-talis
Copy link

mesporas-talis commented Jun 8, 2023

This issue addresses the git ls-files step: #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

@jon-nfc
Copy link

jon-nfc commented Nov 7, 2024

+1 for the removal of git ls.

I've had to specifically add a actions/checkout@v4 step so that the report can be created in a job that just builds reports and doesn't require the repo checked out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants