-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Set up dead link checker in CI #1330
Set up dead link checker in CI #1330
Conversation
I would love to test it with act too, but I'm having some trouble using it. Can you tell me which docker image did you use? The medium one |
Alright, I managed to get act to work with the medium docker container. I just needed the right flag because I'm on an M1 mac ( Something is not right. Lychee reports finding 46 links in total, but we have 60 concepts in this repo, each concept has two If I test and mess up a link on purpose in files for example |
That's more like it!
I'll fix the remaining errors in this PR and merge, thank you very much 💜 |
Thank you! Although I was still unsure of the results, I couldn't find the same number of links with a python script, and the lack of single quotes does not seem to cause a problem in the problem-specifications repo. |
Thank you for contributing to Based on the files changed in this PR, it would be good to pay attention to the following details when reviewing the PR:
Automated comment created by PR Commenter 🤖. |
Related PR nr 1: exercism/problem-specifications#2293 (secret handshake) |
Fixed the ci.yml file. In the previous commit I forgot this one, having only fixed the pr.ci.yml. |
I did not expect how many links are going to pose problems for the link checker 🤦. Now it's twitter blocking not logged in users, and some random timeouts from other pages that aren't really broken links. I'll wait a bit and try to re run the check... I hope it won't always be so flaky. |
@angelikatyborska Would it be helpful to enable the |
I lost my patience and ignored all the links that are giving false positives wrongly on CI (they work in the browser and they work with curl and with lychee from my local machine) |
Resolves #1328
Implementation was done following the example in the issue, but including json in the type of files to be tested to check the links.json files for the complementary links in the concepts pages.
Also fixed some links so as not to leave the repo in an invalid state for the test being added:
Tested with act, and it seems to be working, with every link passing the test.