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

Adding support for CI hooks #3

Open
tapegram opened this issue May 13, 2024 · 1 comment
Open

Adding support for CI hooks #3

tapegram opened this issue May 13, 2024 · 1 comment

Comments

@tapegram
Copy link

A feature I would really like to have is being able to trigger CI on pushes to main (or on releases?)

Thinking out loud, but would it be possible to

  • Identify some key lifecycle events. Maybe Pushed (to main) and Released?
  • Identify some function name/signature to use as a convention (maybe ci : ShareEvent -> {IO, Exception} ())
  • When events are triggered, if this function exists in the project, run the CI function?

Might need to figure out how unit tests fit into this as well (Maybe there should be another ciConfig function that returns a CIConfig with some data on how to handle this?). But even with just the above I could do something like

ci event = match event with
  Pushed (Branch "main") -> 
    deployStage
  Released -> 
    result = runIntegrationTests
    if result then deployProd else (throw ErrorThatBlocksRelease)
  _ -> ()

Would also be down to try to contribute for this but would need a lot of help ;)

@ChrisPenner
Copy link
Contributor

We've definitely got notification webhooks on our roadmap actually!
The main thing holding us up is that we'd like to implement this feature using unison cloud for parts of it, and we're still figuring out what that integration looks like 😄

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

No branches or pull requests

2 participants