devcontainers / feature-starter

A bootstrap repo for self-authoring Dev Container Features
https://containers.dev
MIT License
277 stars 131 forks source link

Run tests on pushes to all branches, not just main #43

Open johnboyes opened 1 year ago

johnboyes commented 1 year ago

I think it would be useful to have the tests run on pushes to all branches, as that provides quicker feedback. Would then mean that anyone creating a new repo from this template repo would also have the tests run on all branches, out of the box. If the maintainers agree then I'm happy to submit a PR, thanks.

samruddhikhandale commented 1 year ago

Hi 👋

I agree, allowing to run tests on every push to all the branches would be beneficial. However, I am not sure if everyone might prefer that ; one could have an opened PR which would trigger the tests, else someone could manually run the tests on their branch (because workflow_dispatch is enabled). Not sure if triggering actions on every push could be annoying! 😅

I think this is alright for now, and if we hear similar feedback or 👍 , then we can update the trigger. As this template repo provides a base, people can build upon this by adding a "*" to the push trigger (if needed).

@johnboyes Let me know what you think, happy to hear if you think otherwise! 😄

//cc @bamurtaugh @joshspicer Interested in hearing your thoughts as well.

bamurtaugh commented 1 year ago

Thanks for opening @johnboyes! I agree with @samruddhikhandale - I think this is a really interesting idea, and I'm interested to see if other members of the dev container community comment that this would or would not be helpful for them.

johnboyes commented 1 year ago

Thanks for the replies @samruddhikhandale and @bamurtaugh. Here's my thinking as to why running the tests on all pushes is a good thing:

Let me know what you think. If you think my reasoning has some merit I'd propose making the change to try it out, and see what everyone's experience is. Would be easy to then revert it after a period of time if the majority preferred

cc @joshspicer

johnboyes commented 1 year ago

Hi @samruddhikhandale and @bamurtaugh, just following up on this, to check you saw my reply above? 🙏🏻

joshspicer commented 1 year ago

Sounds good to me.

The intention of this repo is for folks to use is as a template and edit as they please. Encouraging quicker feedback by running the test suite on all branches works for me 👍