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

Fix exclusion path filter in CI #369

Merged
merged 1 commit into from
Jul 20, 2024
Merged

Conversation

fflaten
Copy link
Contributor

@fflaten fflaten commented Jul 19, 2024

PowerShell steps in CI are currently executed on all PRs because path-filter only requires one filter to match. As a result the manifest exclusion matches any file in the repo and triggers the PowerShell steps. E.g. the PowerShell tests should not have been executed in #368

PR fixes this by adding the missing predicate-quantifier: 'every' parameter to require all filters to match.

Note: Workflow and VSCode will warn about the predicate-quantifier not being a parameter. This is being fixed in dorny/paths-filter#226

@fflaten fflaten marked this pull request as ready for review July 19, 2024 22:05
@fflaten fflaten requested a review from a team as a code owner July 19, 2024 22:05
@f-bader f-bader merged commit a1071ff into maester365:main Jul 20, 2024
3 checks passed
@f-bader
Copy link
Contributor

f-bader commented Jul 20, 2024

Classic OR logic error in my head 😞

@fflaten
Copy link
Contributor Author

fflaten commented Jul 20, 2024

Easy to miss, especially as it's a missing parameter and poorly named. I assumed exclusions had precedence myself, hence this useless commit 😅 ac7d571

@fflaten fflaten deleted the fix-ci-pwshfilter branch July 20, 2024 10:34
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

Successfully merging this pull request may close these issues.

2 participants