From 5ea3328efacb8edb01847fc8db1b5df27e471b2a Mon Sep 17 00:00:00 2001 From: David Anson Date: Sat, 20 Aug 2022 12:46:31 -0700 Subject: [PATCH] Add GitHub Action for checking links in Markdown content. --- .github/dictionary.txt | 3 +++ .github/workflows/checkers.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/dictionary.txt create mode 100644 .github/workflows/checkers.yml diff --git a/.github/dictionary.txt b/.github/dictionary.txt new file mode 100644 index 0000000..ca0ad8a --- /dev/null +++ b/.github/dictionary.txt @@ -0,0 +1,3 @@ +CommonMark +markdownlint-cli2-action +README diff --git a/.github/workflows/checkers.yml b/.github/workflows/checkers.yml new file mode 100644 index 0000000..868c62c --- /dev/null +++ b/.github/workflows/checkers.yml @@ -0,0 +1,27 @@ +name: Checkers + +on: + pull_request: + push: + schedule: + - cron: '30 12 * * *' + workflow_dispatch: + +jobs: + + linkcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: JustinBeckwith/linkinator-action@v1.10.2 + with: + paths: '*.md' + + spellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: tbroadley/spellchecker-cli-action@v1.1.1 + with: + dictionaries: '.github/dictionary.txt' + files: '*.md'