polylith

timo 2024-11-08T10:14:15.017589Z

is there an option for the poly tool to get output that I can directly append to another poly command? (I want to run poly ws get:changes:changed-or-affected-projects skip:dev color-mode:none and use the output to run poly test project:foo:bar

tengstrand 2024-11-08T10:43:53.257439Z

No, we don’t support that. What problem are you trying to solve?

timo 2024-11-08T10:44:26.838779Z

CI should run tests based on changes in projects

tengstrand 2024-11-08T11:30:12.151449Z

poly test :project will include projects in the test run, see https://cljdoc.org/d/polylith/clj-poly/CURRENT/doc/testing#project-tests.

timo 2024-11-08T11:31:53.059139Z

aha ok, so poly runs only the tests for the changed projects anyway

timo 2024-11-08T11:31:56.593499Z

thanks

tengstrand 2024-11-08T11:32:06.225639Z

Yes

seancorfield 2024-11-08T16:19:49.160919Z

We invoke Polylith's API from our build.clj file, so we use https://cljdoc.org/d/polylith/clj-poly/0.2.22-SNAPSHOT/api/polylith.clj.core.api.interface#projects-to-deploy to get the list of changed projects programmatically.

πŸ‘ 1
πŸ™ 1
timo 2024-11-08T16:21:48.534999Z

perfect