#CI module: https://github.com/vikram-
1 messages · Page 1 of 1 (latest)
What kind of prompt would you use?
You could certainly dagger install your ci module in your workspace module and then wrap ci.test() yep
I worked on this today, I'll push up an example in the morning!
Actually I'll push it up in a few minutes but I won't be around to walk through it
So this is based on the github.com/agents/melvin implementation
https://github.com/kpenfound/greetings-api/tree/agent_test_fixer/.dagger
- workspace has a
checkerinterface https://github.com/kpenfound/greetings-api/blob/agent_test_fixer/.dagger/workspace/main.go#L11 - frontend and backend modules both have a
checkfunction that matches that interface (could also betest(), doesn't matter) https://github.com/kpenfound/greetings-api/blob/agent_test_fixer/.dagger/backend/main.go#L37 - main module passes the appropriate check function to the workspace https://github.com/kpenfound/greetings-api/blob/agent_test_fixer/.dagger/main.go#L154