microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
466 stars 55 forks source link

Enhancement: Update Linux setup script so that you can specify the version to install #744

Closed waldekmastykarz closed 2 months ago

waldekmastykarz commented 2 months ago

Update Linux setup script so that you can specify the version to install. This is necessary for CI/CD runners to pin to a specific Dev Proxy version.

Runners will likely invoke the setup script like:

bash -c "$(curl -sL https://aka.ms/devproxy/setup.sh)"

Passing the version must be done from the invocation, eg.

bash -c "$(curl -sL https://aka.ms/devproxy/setup.sh)" v0.18.0

If no version has been passed, the setup script should install the latest available version. Adjust both beta and stable setup scripts.