From eee98b7140641a0e412fafd94f8e3cd0efc7d079 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 16 Dec 2020 23:24:53 +1000 Subject: [PATCH] feat(CI): add Markdown link checker - Checks for dead links in Markdown files - First run will check all files and then we will have a list of dead links - Then we can set it up to only run on files added in the PR --- .github/workflows/markdown-link-checker.yml | 14 ++++++++++++++ mlc_config.json | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/markdown-link-checker.yml create mode 100644 mlc_config.json diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml new file mode 100644 index 000000000..b88b08acc --- /dev/null +++ b/.github/workflows/markdown-link-checker.yml @@ -0,0 +1,14 @@ +name: ๐Ÿ€ Markdown Link Check + +on: [pull_request] + +jobs: + markdown-link-check: + name: ๐Ÿงน Check Links + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 000000000..9150eec89 --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,8 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://127.0.0.1.+", + "pattern": "^http://localhost.+" + } + ] +}