Skip to content

Commit d441806

Browse files
savvidesclaude
andauthored
ci: fix broken vnu download and linkedin link-check 404
Both CI jobs (Validate HTML and Check Links) had been red on main since the v2.1.0 docs sync. Two unrelated infra issues, both fixed. Validate HTML: the validator/validator GitHub project does not publish Releases (only tags), so the install URL github.com/validator/validator/releases/latest/download/vnu.jar_dist.zip 404s and unzip exits 9 before vnu ever runs. Switch to the official vnu-jar npm package (currently v26.4.16). It bundles vnu.jar at a stable known path under node_modules. Drop the apt install of default-jre too; ubuntu-latest runners ship with Java preinstalled. Check Links: linkedin.com/in/savvides/ 404s for unauthenticated bot requests. The link itself is correct and works in browsers. Add --exclude linkedin.com to the lychee args. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 44de73d commit d441806

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17-
- name: Install vnu
18-
run: |
19-
sudo apt-get update -qq
20-
sudo apt-get install -y -qq default-jre
21-
curl -sL https://github.com/validator/validator/releases/latest/download/vnu.jar_dist.zip -o vnu.zip
22-
unzip -q vnu.zip
17+
- name: Install vnu-jar
18+
run: npm install --no-save vnu-jar
2319

2420
- name: Validate HTML
25-
run: java -jar dist/vnu.jar --errors-only index.html
21+
run: java -jar node_modules/vnu-jar/build/dist/vnu.jar --errors-only index.html
2622

2723
check-links:
2824
name: Check Links
@@ -34,5 +30,5 @@ jobs:
3430
- name: Check links
3531
uses: lycheeverse/lychee-action@v2
3632
with:
37-
args: --exclude fonts.googleapis.com --exclude fonts.gstatic.com --exclude d3js.org --exclude localhost --no-progress index.html README.md
33+
args: --exclude fonts.googleapis.com --exclude fonts.gstatic.com --exclude d3js.org --exclude linkedin.com --exclude localhost --no-progress index.html README.md
3834
fail: true

0 commit comments

Comments
 (0)