#can dagger understand git diff by default and run pipelines accordingly?

1 messages · Page 1 of 1 (latest)

proper birch
#

We want to run test cases only for changed files in last commit, so for that dagger can understand it natively or we need to use dagger packges like this to get paths of only changed files or folder and run on top of it? https://daggerverse.dev/mod/github.com/valorl/daggerverse/git-files-changed@e8b25b9c6589f13b362dcaf94acda967f26f6700

And let's say we get 3 diff paths from this package then do we need to run/trigger dagger specifically for all paths?

serene quiver
#

There's no native way to do what you're asking AFAICT

You will have to do all of that inside your dagger pipeline. Get the changed paths and call the specific functions you want depending on the result