Bump actions/checkout from 3 to 4 #297
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: HTML Proofer | |
# run when a event happen in a PR | |
on: [pull_request] | |
jobs: | |
proof-html: | |
runs-on: ubuntu-latest | |
steps: | |
# checkout to the commit that has been pushed | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Update Hugo Modules | |
run: hugo mod tidy | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install node modules | |
run: | | |
hugo mod npm pack | |
npm install | |
- name: Build | |
run: hugo --minify | |
# Run HTML Proofer | |
- uses: anishathalye/[email protected] | |
with: | |
directory: ./public | |
enforce_https: false | |
url_ignore: "#" | |
url_ignore_re: ^https://www.pexels.com |