-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move linkinator to GitHub Actions. #35573
Conversation
b6bc335
to
05de689
Compare
package.json
Outdated
@@ -57,7 +57,7 @@ | |||
"docs": "npm-run-all docs-build docs-lint", | |||
"docs-build": "hugo --cleanDestinationDir", | |||
"docs-compile": "npm run docs-build", | |||
"docs-linkinator": "linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error", | |||
"docs-linkinator": "npx linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking perhaps we should remove the npm script completely...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, we also have spellcheck and validator here so it makes sense IMHO. Or we may drop all of them ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My plan is to move those to Actions too, but they are not exactly the same in my eyes. cpell can run locally out of the box, linkinator requires a docs build first.
I'm in the middle TBH. I just want to reduce our devDependencies since we do have CI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, do note that using npx
is not considered a good practice for good reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I guess vnu could be dropped too in our devDeps, if it runs in an action already? It also requires a build step I think, and is probably one of our heaviest dependency.
Whatever, drop the linkinator script. This is indeed covered by CI. 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, there's no ready Action to run vnu AFAICT. If there was, I would consider moving that to Actions too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I thought a bit about this and perhaps the best solution would be to remove the linkinator
script from the docs-lint
script. It will still be there for now, just not used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we really use it, knowing it's covered by CI? I'm not against keeping it but it looks like dead code if it's not used, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to keep it until we are sure we are OK with the current approach, but maybe it's fine to just drop it...
05de689
to
b01122e
Compare
ad49a21
to
9698138
Compare
9698138
to
42c82b0
Compare
42c82b0
to
80ceac4
Compare
* Move linkinator to GitHub Actions. * Remove `docs-linkinator` npm script since it's no longer used
* Move linkinator to GitHub Actions. * Remove `docs-linkinator` npm script since it's no longer used
* Move linkinator to GitHub Actions. * Remove `docs-linkinator` npm script since it's no longer used
* Move linkinator to GitHub Actions. * Remove `docs-linkinator` npm script since it's no longer used
* Move linkinator to GitHub Actions. * Remove `docs-linkinator` npm script since it's no longer used
No description provided.