Code Monkey home page Code Monkey logo

html5validator-action's Introduction

HTML5 Validator Action

Actions Status Integration Test

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.

Inputs

Flag Description Default
root The root path of the files you want to check
config Path to config file to use.
format The format for logging. Supported values: json, xml, gnu, text.
log_level The log level to use. Supported values: DEBUG, INFO, WARNING. WARNING
css Enable to check css. Supported values: true, false false
blacklist* The names of files or directories to blacklist. These are not full paths.
skip_git_check Skip checking that the repo has been checked out
  • Examples of blacklist

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

Outputs

result

The exit code of the validation.

Example usage

      uses: Cyb3r-Jak3/[email protected]
      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@v3
      with:
        name: log
        path: log.log

Keep up-to-date with GitHub Dependabot

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"

html5validator-action's People

Contributors

cyb3r-jak3 avatar dependabot[bot] avatar ptmkenny avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.