GitHub action using W3C's validator to validate the HTML and CSS of a website https://www.validator-html-action.wtg-demos.ca/
  • Shell 92.1%
  • PowerShell 7.9%
Find a file
Daniel F. Dickinson 3c35b63dc2
Update Hugo modules for demo site fixes and more
Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
2023-09-26 20:47:42 -04:00
.github/workflows Fix typo in 'runs-on' image name 2023-09-11 10:42:05 -04:00
content Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
scripts Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
tests Update Hugo modules for demo site fixes and more 2023-09-26 20:47:42 -04:00
.editorconfig Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
.gitignore Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
.markdownlint.json Workaround markdownlint complaining about accents 2023-09-16 05:28:11 -04:00
.pre-commit-config.yaml Update pre-commit hooks 2023-09-26 20:47:15 -04:00
.stylelintrc.json Initial commit 2023-09-11 00:54:37 -04:00
.yamllint.yaml Initial commit 2023-09-11 00:54:37 -04:00
action.yml Revert "Don't require inputs which have defaults" 2023-09-11 10:47:57 -04:00
cspell.json Initial commit 2023-09-11 00:54:37 -04:00
go.mod Disable audit action for now 2023-09-11 03:23:17 -04:00
go.sum Update Hugo modules for demo site fixes and more 2023-09-26 20:47:42 -04:00
hugo.toml Downgrade minimum required Hugo version 2023-09-12 04:16:02 -04:00
LICENSE Initial commit 2023-09-11 00:54:37 -04:00
package-lock.json Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
package.json Initial commit 2023-09-11 00:54:37 -04:00
README.fr.md Add missing 'repo-token' for examples in READMEs 2023-09-11 11:14:12 -04:00
README.md Add missing 'repo-token' for examples in READMEs 2023-09-11 11:14:12 -04:00
validator-html-action.code-workspace Personalize project skeleton for validator action 2023-09-11 03:11:20 -04:00
words-fr-project.txt Add documenation for action 2023-09-11 05:32:30 -04:00
words-project.txt Initial commit 2023-09-11 00:54:37 -04:00

GitHub action to validate HTML and CSS of site

Description: GitHub action using W3C's validator to validate the HTML and CSS of a website
Repository URL: https://github.com/wildtechgarden/validator-html-action
Site: https://www.validator-html-action.wtg-demos.ca
CI Status: pre-commit.ci status build-audit

Contents

  1. Contents
  2. Configuration and usage
    1. Actions inputs variables
    2. Sample usage
  3. Development
  4. Colophon

Configuration and usage

Actions inputs variables

Input Required Default Meaning
download-site-as yes unminified-site GitHub Artifact containing a tarball with the site
download-site-filename yes hugo-site.tar Name of tarball containing the site
output-directory yes public subdirectory (in tarball) containing the site to validate
repo-token yes (none) GITHUB_TOKEN
use-existing-workspace no false Use an existing checkout and built site instead of artifact

The tarball (default hugo-site.tar) in the artifact (default unminified-site) pointed at by download-site-as must contain the following:

  • A subdirectory tree containing the site (default: public, optionally defined by output-directory).

Sample usage

name: test-html-validate
on:
  pull_request:
    types:
    - assigned
    - opened
    - synchronize
    - reopened
  push:
    branches:
    - main
jobs:
  build-unminified-site:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v4
    - name: "Build site with Hugo and audit"
      uses: wildtechgarden/audit-build-action-hugo-dfd@main
      with:
        base-url: "https://www.example.com/"
        build-for-downstream: "true"
        source-directory: exampleSite
        use-lfs: false
    - name: "Validate HTML of statically generated website"
      uses: wildtechgarden/validator-html-action@main
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        use-existing-workspace: "true"

Development

TBD


Colophon

Copyright © 2023 Wild Tech 'Garden'
Released under an MIT License