How can i validate a project with the CLI?

Hi.

In our CI/CD pipeline, we use GitHub Actions to pack and deploy robots to our cloud Orchestrator.

That works very well and all is good. However, I would like to introduce a check before a merge is possible between branches in GitHub.

The check should be a small GitHub Action that will validate if the project has any validation errors. Just like pressing “Validate Project” in the top ribbon in Studio. If the action finds project validation errors, merge should not be possible and I would like the error(s) found, posted as comments on the PR.

The unfortunate thing is, that in the UiPath Windows CLI there is currently no option to do a project validation. I have played around with the workflow analyzer option in the CLI, but that does not produce validation errors.

I have not found another way do to this. Remember, that it has to be executable inside a GitHub Actions runner. Anyone that have found a way?

@loginerror +2 years since you added this to your internal tracker - can you update me on a status? Command line error validation needed for DevOps

@jaeger , we have added the option of passing a governance policy (with Workflow Analyzer rules) in the UiPath.Pipelines.Activities package. It also covers validation step before creating the package.
More details about Automation Ops Pipelines can be found here: Automation Ops - Pipelines GA announcement - News / Product News - UiPath Community Forum

For the CLI, this was not implemented yet. It is on our backlog, but I cannot provide a clear timeline.