Skip to content

ci: run PHP test only if something related changed - #8822

Merged
SebastianKrupinski merged 9 commits into
mainfrom
run-php-tests-conditionally
Sep 1, 2026
Merged

ci: run PHP test only if something related changed#8822
SebastianKrupinski merged 9 commits into
mainfrom
run-php-tests-conditionally

Conversation

@odzhychko

Copy link
Copy Markdown
Contributor

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Comment thread .github/workflows/php-test.yml Outdated
@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@odzhychko
odzhychko force-pushed the run-php-tests-conditionally branch from 7df0a07 to b4c69a4 Compare September 1, 2026 10:55
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@odzhychko
odzhychko force-pushed the run-php-tests-conditionally branch from b4c69a4 to 5a6584a Compare September 1, 2026 10:56
@odzhychko
odzhychko marked this pull request as ready for review September 1, 2026 10:56
@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Don't merge this yet... we should make these changes on the rest of the workflows also

https://github.com/nextcloud/calendar/blob/main/.github/workflows/lint-php-cs.yml

https://github.com/nextcloud/calendar/blob/main/.github/workflows/lint-php.yml

I can do it if you are too busy

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Comment thread .github/changes-filters.yml
@odzhychko
odzhychko marked this pull request as draft September 1, 2026 13:20
@odzhychko

Copy link
Copy Markdown
Contributor Author

Hm, I think I still need to correctly configure how the summaries run so that CI don't run PHP jobs are not stuck...

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@odzhychko

Copy link
Copy Markdown
Contributor Author

@SebastianKrupinski Can be reviewed again in.

Here is how it looks when the tests are skipped #8823

@odzhychko
odzhychko marked this pull request as ready for review September 1, 2026 14:07

if: always()

name: php-cs-lint-summary

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adding this job, we will need to change the required jobs that gate merges.

From lint-php-cs/lint to lint-php-cs/summary

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need a different job gate? Your test Ci ran correctly

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#8823 did not open a PR to main so. I think we have the gates only for PRs to main (and maybe the stable branches?)

@SebastianKrupinski SebastianKrupinski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me

From your user CI test branch
Image

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@SebastianKrupinski
SebastianKrupinski merged commit fc45059 into main Sep 1, 2026
42 of 44 checks passed
@SebastianKrupinski
SebastianKrupinski deleted the run-php-tests-conditionally branch September 1, 2026 22:47
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