Skip to content

Commit 4fdfd3b

Browse files
committed
Enable HTML validation in CI
1 parent c4257c4 commit 4fdfd3b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build, Validate, Package & Publish
22

33
on: [push, pull_request, workflow_dispatch]
44

@@ -51,6 +51,13 @@ jobs:
5151
- name: Build
5252
run: dotnet build Source/HtmlRenderer.sln --configuration Release --no-restore
5353

54+
- name: Validate HTML
55+
uses: anishathalye/proof-html@v2
56+
with:
57+
directory: ./Source
58+
check_html: true
59+
check_css: true
60+
5461
- name: Create HtmlRenderer.Core NuGet package
5562
run: dotnet pack Source/HtmlRenderer/HtmlRenderer.csproj --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg --no-build --verbosity normal --output ${{ env.NuGetDirectory }}
5663

0 commit comments

Comments
 (0)