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

ci: run tests on push to dev, main and all PRs #77

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

jcfranco
Copy link
Contributor

@jcfranco jcfranco commented Oct 3, 2024

✨🧪✨

@@ -1,6 +1,12 @@
name: tests

on: push
on:
Copy link
Owner

Choose a reason for hiding this comment

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

I think is better to run tests on every branch. We may have checks that prevent merges to master when tests fail but I think is better to know if they are failing in any other PR.

Copy link
Contributor Author

@jcfranco jcfranco Oct 7, 2024

Choose a reason for hiding this comment

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

I’m not sure I follow. This PR setup runs tests/checks on PRs targeting main and direct pushes to it. Are you suggesting we should also run tests on:

  1. PRs targeting any branch?
  2. Any commit pushed to any branch?

If that’s the case, there could be some downsides to consider:

  • Duplicate test runs
  • Increased resource usage
  • More notifications (added noise) not applicable

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, the problem is when developing an epic (the PRs would target a branch different from dev or master). I would let the rule to:

  1. Target any push in dev or main
  2. Target any PR no matter the branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@jcfranco jcfranco changed the base branch from master to main October 11, 2024 06:41
@jcfranco jcfranco changed the base branch from main to dev October 11, 2024 06:56
@jcfranco jcfranco changed the title ci: run tests on push and pull requests targeting master ci: run tests on push and pull requests targeting main Oct 14, 2024
@jcfranco jcfranco changed the title ci: run tests on push and pull requests targeting main ci: run tests on push to dev, main and all PRs Oct 14, 2024
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