From ab92fe10083e676b0fbd7f9ceb9b732321ebc705 Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Tue, 24 Dec 2024 12:53:12 +0900 Subject: [PATCH] Remove markdown link check This CI job is incredibly flaky and provides little value. Remove it to reduce maintenance burden. --- .github/markdown-link-check.json | 19 ------------ .github/workflows/markdown-link-check.yaml | 34 ---------------------- Rakefile | 19 ------------ 3 files changed, 72 deletions(-) delete mode 100644 .github/markdown-link-check.json delete mode 100644 .github/workflows/markdown-link-check.yaml diff --git a/.github/markdown-link-check.json b/.github/markdown-link-check.json deleted file mode 100644 index 3f3487d..0000000 --- a/.github/markdown-link-check.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "img.shields.io" - }, - { - "pattern": "^https://twitter.com/artichokeruby" - } - ], - "replacementPatterns": [], - "httpHeaders": [ - { - "urls": ["https://crates.io"], - "headers": { - "Accept": "text/html" - } - } - ] -} diff --git a/.github/workflows/markdown-link-check.yaml b/.github/workflows/markdown-link-check.yaml deleted file mode 100644 index e515e22..0000000 --- a/.github/workflows/markdown-link-check.yaml +++ /dev/null @@ -1,34 +0,0 @@ ---- -"on": - push: - branches: - - trunk - paths: - - .github/markdown-link-check.json - - .github/workflows/markdown-link-check.yaml - - "**/*.md" - pull_request: - branches: - - trunk - paths: - - .github/markdown-link-check.json - - .github/workflows/markdown-link-check.yaml - - "**/*.md" - schedule: - - cron: "0 0 * * TUE" -name: Markdown Links Check -jobs: - check-links: - name: Check links - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4.2.2 - - - name: Check for broken links in markdown files - uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # v1.0.15 - with: - use-quiet-mode: "yes" - use-verbose-mode: "yes" - config-file: ".github/markdown-link-check.json" - folder-path: "." diff --git a/Rakefile b/Rakefile index a200627..3ea9973 100644 --- a/Rakefile +++ b/Rakefile @@ -36,25 +36,6 @@ end Bundler::Audit::Task.new -namespace :release do - link_check_files = FileList.new('**/*.md') do |f| - f.exclude('node_modules/**/*') - f.exclude('**/target/**/*') - f.exclude('**/vendor/*/**/*') - f.include('*.md') - f.include('**/vendor/*.md') - end - - link_check_files.sort.uniq.each do |markdown| - desc 'Check for broken links in markdown files' - task markdown_link_check: markdown do - command = ['npx', 'markdown-link-check', '--config', '.github/markdown-link-check.json', markdown] - sh command.shelljoin - sleep(rand(1..5)) - end - end -end - RUST_VERSION = '1.83.0' namespace :toolchain do