robotframework-tidy as a gitlab pipeline check #721
-
I need to include robotframework-tidy as a gitlab pipeline check can anyone help how to do this? Also, if a separate config file is needed can someone give example? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The same config file you are using when running locally will be enough (and even better since you want to use the same settings to avoid differences). You only need the tool to return non-0 exit code so the pipeline will fail: https://robotidy.readthedocs.io/en/stable/quickstart.html#status-code If you run robotidy with |
Beta Was this translation helpful? Give feedback.
If you didn't use any extra config, you also don't need anything extra besides
--check
in the pipeline.First you need to ensure you have robotidy installed in Gitlab runner. That depends on your work environment, but either add it to docker that is build and used for your runner or simply install it in the pipeline directly. I don't know your setup, but for example: