From cbff801a4c094c49d2bf7761448cdb4bd46c3fb1 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Wed, 29 Jan 2020 18:16:05 +0100 Subject: [PATCH] add Vale text linter --- .github/styles/vocab.txt | 2 ++ .github/workflows/main.yml | 18 ++++++++++++++++++ .vale.ini | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 .github/styles/vocab.txt create mode 100644 .github/workflows/main.yml create mode 100644 .vale.ini diff --git a/.github/styles/vocab.txt b/.github/styles/vocab.txt new file mode 100644 index 000000000..c6b318c1d --- /dev/null +++ b/.github/styles/vocab.txt @@ -0,0 +1,2 @@ +ssl +tls diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..d6fb9e75a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Linting +on: [push] + +jobs: + prose: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Vale + uses: errata-ai/vale-action@v1.0.4 + with: + styles: | + https://github.com/errata-ai/write-good/releases/latest/download/write-good.zip + https://github.com/errata-ai/Google/releases/latest/download/Google.zip + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 000000000..71ebc1b36 --- /dev/null +++ b/.vale.ini @@ -0,0 +1,5 @@ +StylesPath = .github/styles +MinAlertLevel = suggestion + +[*.{md,rst,py}] +BasedOnStyles = Vale