From 0a84f2773ac4ddbfbcd152b338393c8e090a0fcf Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Mon, 1 Jan 2024 13:12:05 +0600 Subject: [PATCH 1/2] Add HTML proofer action Signed-off-by: hossainemruz --- .github/workflows/pull-request.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0b464f6..cf43336 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -90,3 +90,35 @@ jobs: - uses: actions/checkout@v4.1.1 # run markdown linter - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 + + proof-html: + runs-on: ubuntu-latest + steps: + # checkout to the commit that has been pushed + - uses: actions/checkout@v4.1.1 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install node modules + run: npm install + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2.6.0 + with: + hugo-version: 'latest' + extended: true + + - name: Build + run: | + cd exampleSite + hugo --minify + + # Run HTML Proofer + - uses: anishathalye/proof-html@v2.1.2 + with: + directory: exampleSite/public + enforce_https: false + url_ignore: "#" From b22c6061374e89d209dc345247da358ee22cc145 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Mon, 1 Jan 2024 13:32:57 +0600 Subject: [PATCH 2/2] Ignore # URL Signed-off-by: hossainemruz --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index cf43336..5ebd65c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -121,4 +121,4 @@ jobs: with: directory: exampleSite/public enforce_https: false - url_ignore: "#" + ignore_url: "#"