From b5c48c79794e7a221aae6abed0895b3dff9af568 Mon Sep 17 00:00:00 2001 From: Maxim V Filimonov Date: Thu, 12 Dec 2024 04:08:47 +0500 Subject: [PATCH] Add spellcheck CI job --- .github/workflows/spellcheck.yml | 30 ++++++++++++++++++++++++++++++ ru-custom.txt | 5 +++++ spellcheck.yml | 11 +++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .github/workflows/spellcheck.yml create mode 100644 ru-custom.txt create mode 100644 spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..e4745ce --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + - name: GitHub Spellcheck + uses: igsekor/pyspelling-any@v1.0.4 + diff --git a/ru-custom.txt b/ru-custom.txt new file mode 100644 index 0000000..3d38bce --- /dev/null +++ b/ru-custom.txt @@ -0,0 +1,5 @@ +FreeBSD +KDE +freebsd +https +ru diff --git a/spellcheck.yml b/spellcheck.yml new file mode 100644 index 0000000..02a1e41 --- /dev/null +++ b/spellcheck.yml @@ -0,0 +1,11 @@ +matrix: +- name: Readme + sources: + - README.md + hunspell: + lang: ru + d: ru_RU + + dictionary: + wordlists: + - ru-custom.txt