From fd989ae38b93c0ffe7b37299ad0b1facfd87812a Mon Sep 17 00:00:00 2001 From: Nico Rikken Date: Tue, 28 Mar 2023 07:38:35 +0200 Subject: [PATCH] feat: spellcheck Actions workflow GitHub Actions workflow for the CSpell spellcheck. Action from https://github.com/streetsidesoftware/cspell-action Additional dictionary has to be installed seperately upfront, as described in https://github.com/streetsidesoftware/cspell-action/issues/181 Signed-off-by: Nico Rikken --- .github/workflows/spellcheck.yml | 13 +++++++++++++ cspell.config.yaml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..6e7d8e0 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,13 @@ +name: 'Check spelling' +on: # rebuild any PRs and main branch changes + pull_request: + push: + +jobs: + spellcheck: # run the action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install dictionaries + run: npm install @cspell/dict-nl-nl + - uses: streetsidesoftware/cspell-action@v2 diff --git a/cspell.config.yaml b/cspell.config.yaml index 49e4369..93e8a8f 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -6,3 +6,5 @@ ignorePaths: # Ignore License files that should not be touched - "LICENSE" - "LICENSES/*" +import: + - "@cspell/dict-nl-nl/cspell-ext.json"