Skip to content

build: add Travis job to check for dead URL links

Refs: https://github.com/nodejs/node/pull/27168#issuecomment-483678744

In the long run we should add tools to prevent this ? I wonder can https://github.com/JustinBeckwith/linkinator integrate to travis-ci ? (Suggested by @Bnb )

Seems easy enough to put together.

This is a proof of concept of running https://github.com/JustinBeckwith/linkinator on our built HTML docs to find broken URL links. I don't think we want to be running this for every PR as when I run it locally it checks 900+ links which could be seen as a denial of service attack if we run it too often.

Also it seems to be flagging some URL's as broken which I appear to be able to navigate to in web browser (although there does appear to be redirecting going on). If anyone wants to look into that or adopt this PR then great as I probably won't be spending much time on it.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading