Convenience wrapper for the html5validator Python package that can validate HTML, CSS and SVG files. Packs all required dependencies into a container image that you can use with your CI/CD pipeline.
Validate all HTML, CSS and SVG files in your current local directory and its subfolders:
docker run --rm -v $(pwd):/app:ro painless/html5validator
Validate your repository's HTML, CSS and SVG files, located in a html
folder,
with GitLab CI:
# .gitlab-ci.yml
html5validator:
image: painless/html5validator
script: html5validator --root html/ --also-check-css --also-check-svg --show-warnings
Obviously, the use is similar with other CI services.
- Contribute (GitHub repository)