This action checks the syntax of your html files in the path you specify.
It used html5validator and a docker image that I build from it.
For help getting started, check out the wiki.
The root path of the files you want to check.
The path to the config file.
Additional arguments to pass to html5validator.
The format for logging. Supported values: json, xml, gnu, text
.
The log level to use. Supported values: DEBUG, INFO, WARNING
. Default: WARNING
.
Enable to check css. Supported values: true, false
. Default: false
.
The names of files or directories to blacklist.
These are not full paths.
Correct Example:
- name: HTML5Validator
uses: Cyb3r-Jak3/html5validator-action
with:
root: tests/
blacklist: invalid
Incorrect Example:
- name: HTML5Validator
uses: Cyb3r-Jak3/html5validator-action
with:
root: tests/
blacklist: tests/invalid
The exit code of the validation.
uses: Cyb3r-Jak3/html5validator-action
with:
root: tests/valid/
A log file is automatically created. To retrieve it, use Github's upload artifact action after the validator action.
- uses: actions/upload-artifact@v2
with:
name: log
path: log.log
Since Dependabot
has native GitHub Actions support,
to enable it on your GitHub repo all you need to do is add the .github/dependabot.yml
file:
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"