Tidy HTML files in Gitlab CI pipeline

The tidy tool could be use to check the syntax of HTML files. To use it in your Gitlab CI pipeline add a tidy.config file to your projects root folder:

And the following job to .gitlab-ci.yml:

Make sure your Pipeline has a test stage and a docker runner is configured with the tag docker-runner.

For available configuration options check the tidy(1) man page.