Skip to content

ci: run only github actions affected by PR #5402

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 9 commits into from
Jun 4, 2025
Merged

ci: run only github actions affected by PR #5402

merged 9 commits into from
Jun 4, 2025

Conversation

alexprudhomme
Copy link
Contributor

@alexprudhomme alexprudhomme commented Jun 3, 2025

https://coveord.atlassian.net/browse/KIT-4301

Using a NX command, we can determine what projects are affected by the files changed. We can then add a condition to every github action that will check if one of its dependant project is affected.

Example :

This typedoc action builds typedoc for headless & headless-react. If one of those is in the projects affected, it will run it. If not, it will skip it.

  typedoc:
    name: 'Build typedoc'
    needs: affected
    if: contains(needs.affected.outputs.projects, 'headless') || contains(needs.affected.outputs.projects, 'headless-react')

Please review each action to make sure it has the right projects in the condition.

@developer-experience-bot
Copy link
Contributor

developer-experience-bot bot commented Jun 3, 2025

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 249.8 249.8 0
commerce 362.7 362.7 0
search 420.9 420.9 0
insight 412 412 0
recommendation 260.7 260.7 0
ssr 414.5 414.5 0
ssr-commerce 379.2 379.2 0

@alexprudhomme alexprudhomme marked this pull request as ready for review June 3, 2025 18:12
@alexprudhomme alexprudhomme requested a review from a team as a code owner June 3, 2025 18:12
Copy link
Collaborator

@louis-bompart louis-bompart left a comment

Choose a reason for hiding this comment

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

@erocheleau, do you remember some of the tests that you ran, just so we could try them out

Base automatically changed from KIT-4300 to master June 3, 2025 21:36
@alexprudhomme alexprudhomme added this pull request to the merge queue Jun 4, 2025
Merged via the queue into master with commit 7ddd939 Jun 4, 2025
38 checks passed
@alexprudhomme alexprudhomme deleted the KIT-4301 branch June 4, 2025 16:51
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