DEV Community

Cover image for TOD - command line tool to run OneDev CI/CD jobs against local changes
Robin Shen
Robin Shen

Posted on

TOD - command line tool to run OneDev CI/CD jobs against local changes

OneDev 10.2 comes with TOD (The*OneD*ev), a command line tool to test/debug CI/CD jobs against local changes to avoid the modify/commit/push/run/check cycles.

Under the hood, tod stashes local changes to a commit and pushes to server under a temporal ref to run specified job. Log of running job is streamed back to tod so that you can check job progress and status without leaving terminal.

Image description

Since job runs on server, it does not have many quirks and limitations of other tools (gitlab-runner exec or nektos/act for instance), such as requiring you to set up job environments, unable to handle job dependencies, etc. And you can still get fast feedback via shallow clone and cache.

For details, please check tod project

Top comments (0)