Skip to content

GitHub Actions: Add path filtering to End-to-End Tests workflow#71602

Open
Adi-ty wants to merge 2 commits intoWordPress:trunkfrom
Adi-ty:feat/github-actions-e2e-path-filtering
Open

GitHub Actions: Add path filtering to End-to-End Tests workflow#71602
Adi-ty wants to merge 2 commits intoWordPress:trunkfrom
Adi-ty:feat/github-actions-e2e-path-filtering

Conversation

@Adi-ty
Copy link
Copy Markdown
Contributor

@Adi-ty Adi-ty commented Sep 11, 2025

What?

Closes #71526

Adds comprehensive path filtering to the End-to-End Tests workflow to prevent unnecessary test runs when changes don't affect functionality.

Why?

The End-to-End Tests workflow currently runs on every PR regardless of the changes being proposed.

How?

Add paths-ignore list in .github/workflows/end2end-test.yml to skip E2E tests.

- Add paths-ignore to skip E2E tests for non-functional changes
Addresses issue WordPress#71526
@t-hamano t-hamano added [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. GitHub Actions Pull requests that update GitHub Actions code labels Sep 11, 2025
@Adi-ty Adi-ty marked this pull request as ready for review September 12, 2025 12:38
@Adi-ty Adi-ty requested a review from desrosj as a code owner September 12, 2025 12:38
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Adi-ty <iamadisingh@git.wordpress.org>
Co-authored-by: johnbillion <johnbillion@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Copy Markdown
Member

@desrosj desrosj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Adi-ty,

Thank you for working on this! Instead of utilizing paths-ignore, can we instead use paths? There are two main reasons why this is preferred:

  • This more closely matches how the WordPress/wordpress-develop workflows are already set up
  • It's a bit more future proof in that new files/file types/directories will not cause the workflow to run.

It's not always obvious when and where this list will need updating. By using in include list, it will be clear because the workflow will not run when contributors are expecting it to. The list will likely also be much shorter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Actions Pull requests that update GitHub Actions code [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Actions: Implement more path filtering to reduce unnecessary workflow runs

3 participants