Skip to content

Commit

Permalink
use internal DNS settings, update flags, use latest muffet version
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones-plip committed Dec 16, 2024
1 parent 5edada3 commit e65e4ba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 67 deletions.
55 changes: 29 additions & 26 deletions .github/scripts/muffet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,38 @@
# download.docker.com are excluded below) you can add additional sites as needed. Please
# use extremely granular URLs so as not to exclude more than we need to.

muffet http://localhost:1313 \
muffet http://localhost:1313/ \
--dns-resolver 192.168.68.20:53 \
--buffer-size 50000 \
--timeout 35 \
--concurrency 2 \
--max-connections 2 \
--ignore-fragments \
--exclude "http[s]*://github.com/medic/.*/issues/new*" \
--exclude "http[s]*://github.com/medic/.*/commit*" \
--exclude "http[s]*://github.com/medic/cht-docs/edit/main*" \
--exclude "http[s]*://github.com/medic/medic-infrastructure*" \
--exclude "http[s]*://github.com/moh-kenya/config-echis-2.0*" \
--exclude "http[s]*://docs.google.com/spreadsheets/d/12345ABCDEF*" \
--exclude "http[s]*://docs.google.com/document/d/14AuJ7SerLuOPESBjQlJqpBtzwSAoVf5ykTT7fjyJBT0*" \
--exclude "http[s]*://drive.google.com/file/d/1YPXoba9gVmD7SP-X88PpJIsIVGvY86_G*" \
--exclude "http[s]*://tools.google.com*" \
--exclude "http[s]*://www.tableau.com*" \
--exclude "http[s]*://github.com/medic/.*/issues/new.*" \
--exclude "http[s]*://github.com/medic/.*/commit.*" \
--exclude "http[s]*://github.com/medic/cht-docs/edit/main.*" \
--exclude "http[s]*://github.com/medic/medic-infrastructure.*" \
--exclude "http[s]*://github.com/moh-kenya/config-echis-2.0.*" \
--exclude "http[s]*://docs.google.com/spreadsheets/d/12345ABCDEF.*" \
--exclude "http[s]*://docs.google.com/document/d/14AuJ7SerLuOPESBjQlJqpBtzwSAoVf5ykTT7fjyJBT0.*" \
--exclude "http[s]*://drive.google.com/file/d/1YPXoba9gVmD7SP-X88PpJIsIVGvY86_G.*" \
--exclude "http[s]*://tools.google.com.*" \
--exclude "http[s]*://www.tableau.com.*" \
--exclude "http[s]*://doi.org/10.1080/02681102.2019.1667289" \
--exclude "http[s]*://journals.sagepub.com/doi/full/10.1177/20552076231194924" \
--exclude "http[s]*://garticphone.com*" \
--exclude "http[s]*://www.hl7.org*" \
--exclude "http[s]*://demo.app.medicmobile.org*" \
--exclude "http[s]*://garticphone.com.*" \
--exclude "http[s]*://www.hl7.org.*" \
--exclude "http[s]*://demo.app.medicmobile.org.*" \
--exclude "http[s]*://www.npmjs.com/org/medic/team/developers" \
--exclude "http[s]*://docs.couchdb.org*" \
--exclude "http[s]*://oppiamobile.readthedocs.io*" \
--exclude "http[s]*://africastalking.com*" \
--exclude "http[s]*://borgbackup.readthedocs.io*" \
--exclude "http[s]*://udemy.com*" \
--exclude "http[s]*://udacity.com*" \
--exclude "http[s]*://.*my.local-ip.co*" \
--exclude "http[s]*://.*local-ip.medicmobile.org*" \
--exclude "http[s]*://cht.domain.com*" \
--exclude "http[s]*://localhost*" \
--exclude "http[s]*://127.*"
--exclude "http[s]*://docs.couchdb.org.*" \
--exclude "http[s]*://oppiamobile.readthedocs.io*." \
--exclude "http[s]*://africastalking.com.*" \
--exclude "http[s]*://borgbackup.readthedocs.io.*" \
--exclude "http[s]*://udemy.com.*" \
--exclude "http[s]*://udacity.com.*" \
--exclude "http[s]*://.*my.local-ip.co.*" \
--exclude "http[s]*://.*local-ip.medicmobile.org.*" \
--exclude "http[s]*://cht.domain.com.*" \
--exclude "http[s]*://localhost:5.*" \
--exclude "http[s]*://localhost:8.*" \
--exclude "http[s]*://localhost$" \
--exclude "http[s]*://127*"
36 changes: 0 additions & 36 deletions .github/scripts/set_dns.sh

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/cron-check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Install Muffet
run: |
GO111MODULE=on go install github.com/raviqqe/muffet@v1.5.7
GO111MODULE=on go install github.com/raviqqe/muffet@v2.10.6
asdf reshim golang
# run in background so CI doesn't hang waiting for "ctrl + c". Sleep ensures server is ready in next step
Expand All @@ -44,10 +44,6 @@ jobs:
hugo server&
sleep 30
- name: Set DNS to 9.9.9.9
shell: bash
run: ./.github/scripts/set_dns.sh

- name: Run Muffet link checker
shell: bash
run: ./.github/scripts/muffet.sh
Expand Down

0 comments on commit e65e4ba

Please sign in to comment.