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

Optimize workflows #14

Open
eugenschindler opened this issue Nov 19, 2021 · 0 comments
Open

Optimize workflows #14

eugenschindler opened this issue Nov 19, 2021 · 0 comments
Labels
help wanted Extra attention is needed quality improvement of quality & dev automations

Comments

@eugenschindler
Copy link
Member

eugenschindler commented Nov 19, 2021

Currently, we have 3 workflows on main: build, publish packages, release.
Each of those flows builds everything from scratch. This can be optimized as follows:

  • Build may not be necessary at all, if we can close the main branch for direct commits and enforce pull requests to be built and green before we can merge them. This depends on Find a way to protect main branch from direct commits #24.
  • Given that build is not necessary on master, publish can take care of putting the relevant packages in the package repository.
  • If we find a way to pass on which packages have to be released, the release also doesn't need to build from scratch and can simply put out relevant packages as a release.

Alternatively (since currently all three workflows get directly triggered upon any commit on main), we can combine build, publish packages, and release in one workflow (which is fine as long as we have the above described protection of main and pull request workflow). Finally, if we could relate the artifacts built by a pull request upon merging from that pull request, we could even optimize away the build step on the main workflow for publishPackages-release.

@eugenschindler eugenschindler added quality improvement of quality & dev automations help wanted Extra attention is needed labels Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed quality improvement of quality & dev automations
Projects
None yet
Development

No branches or pull requests

1 participant