Skip to content

Commit 4e63746

Browse files
committed
Add HTML proofer action
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
1 parent d5fb8e5 commit 4e63746

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,35 @@ jobs:
9090
- uses: actions/checkout@v4.1.1
9191
# run markdown linter
9292
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
93+
94+
proof-html:
95+
runs-on: ubuntu-latest
96+
steps:
97+
# checkout to the commit that has been pushed
98+
- uses: actions/checkout@v4.1.1
99+
100+
- name: Setup Node
101+
uses: actions/setup-node@v4
102+
with:
103+
node-version: 18
104+
105+
- name: Install node modules
106+
run: npm install
107+
108+
- name: Setup Hugo
109+
uses: peaceiris/actions-hugo@v2.6.0
110+
with:
111+
hugo-version: 'latest'
112+
extended: true
113+
114+
- name: Build
115+
run: |
116+
cd exampleSite
117+
hugo --minify
118+
119+
# Run HTML Proofer
120+
- uses: anishathalye/proof-html@v2.1.2
121+
with:
122+
directory: exampleSite/public
123+
enforce_https: false
124+
url_ignore: "#"

0 commit comments

Comments
 (0)