leostera / caramel

:candy: a functional language for building type-safe, scalable, and maintainable applications
https://caramel.run
Apache License 2.0
1.06k stars 25 forks source link

chore(ci): only run ci on main branch and pull requests #88

Closed michallepicki closed 3 years ago

michallepicki commented 3 years ago

When contributing to Caramel from a forked repository, for example working on an opened PR, I noticed that there are double CI builds happening: one in the AbstractMachinesLab / caramel repo, and one in my fork. This is confusing and it seems a bit wasteful.

This PR changes the CI configuration so that it runs on each commit only on the main branch or from opened pull requests, so there should not be duplicated CI workflows triggered from a forked repository in the most common contribution flow.