ChristopherHX/runner.server is a project that allows local development and testing of your pipelines.
This introduction guide will install the tool globally so you can easily use the command from any directory.
.Net Sdk 6 or 7
Install ChristopherHX/runner.server as a dotnet tool
dotnet tool install --global io.github.christopherhx.gharun
dotnet tool update --global io.github.christopherhx.gharun
gharun --event azpipelines -W pipeline.yml
The output of your pipeline should output to your cli.
By the runner server will spawn a web ui however it exits onces all tasks have completed.
To keep the server alive and also watch you directory for live changes run:
add -w
or --watch
to the command.
gharun --event azpipelines -W pipeline.yml --watch
To simulate multiple runners to use Jobs in parallel use this command.
--parallel n
where N is the number of runners.
gharun --event azpipelines -W ./pipeline.yml --parallel 5
--runner-version VERSION
where VERSION is the tagname of microsoft/azure-pipelines-agent without the v
prefix.
gharun --event azpipelines -W ./pipeline.yml --runner-version 3.217.1
See GitHub Issues
https://github.com/ChristopherHX/runner.server/tree/main/testworkflows/azpipelines