test with Node.js #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate HTML with W3C's nu validator | |
on: | |
push: | |
branches: ["*"] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Build with Ruby | |
run: npm run build | |
- name: Run nu validator | |
run: docker run --mount type=bind,source=$(pwd)/_site,target=/_site ghcr.io/validator/validator:latest vnu --skip-non-html _site |