Skip to content

Remove unnecessary recursive .npmrc coverage from workflow path filters #159

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented May 20, 2025

For the sake of efficiency, GitHub Workflows should be configured to only be triggered when relevant files are modified. This filtering is done via the paths mapping. "Globstar" patterns are supported in paths filters. This will cause the filter to match the matching files in any path under the repository.

Previously, this was done for the .npmrc npm configuration file in various workflows. Although this is appropriate in the "Check npm" workflow, which supports checking npm-based projects in subfolders of the repository, it is not appropriate for the other workflows which do not have such support (and likely don't need it).

In order to improve the efficiency of the workflows, the globstars are removed from the .npmrc path filters in the workflows where it is not appropriate.

…ters

For the sake of efficiency, GitHub Workflows should be configured to only be triggered when relevant files are modified.
This filtering is done via the `paths` mapping. "Globstar" patterns are supported in paths filters. This will cause the
filter to match the matching files in any path under the repository.

Previously, this was done for the `.npmrc` npm configuration file in various workflows. Although this is appropriate in
the "Check npm" workflow, which supports checking npm-based projects in subfolders of the repository, it is not
appropriate for the other workflows which do not have such support (and likely don't need it).

In order to improve the efficiency of the workflows, the globstars are removed from the `.npmrc` path filters in the
workflows where it is not appropriate.
@per1234 per1234 self-assigned this May 20, 2025
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: infrastructure Related to project infrastructure labels May 20, 2025
@per1234 per1234 merged commit b8b3efc into arduino:master May 20, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant