From 5bca523452c5be0582f518176cd80a1e9b7d7263 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Mon, 29 Nov 2021 09:33:11 +0100 Subject: [PATCH] Add a spellchecker --- .github/.typo-ci.yml | 7 +++++++ .github/workflows/spellcheck.yml | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/.typo-ci.yml create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/.typo-ci.yml b/.github/.typo-ci.yml new file mode 100644 index 0000000000..0a7fa9f83f --- /dev/null +++ b/.github/.typo-ci.yml @@ -0,0 +1,7 @@ +dictionaries: +- fr + +excluded_files: +- ".github/**/*" + +spellcheck_filenames: false \ No newline at end of file diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000000..9acb13eec1 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,22 @@ +# https://github.com/TypoCI/spellcheck-action +name: Typo CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + spellcheck: + name: Typo CI (GitHub Action) + runs-on: ubuntu-latest + timeout-minutes: 4 + if: "! contains(toJSON(github.event.commits.*.message), '[skip-spellcheck]')" + steps: + - name: TypoCheck + uses: typoci/spellcheck-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file