From 8de75543189af8df900b2df4adba4e93d3e8ce3d Mon Sep 17 00:00:00 2001 From: cn Date: Thu, 18 Jan 2024 22:54:22 +0100 Subject: [PATCH] ci: add vale docs linter --- .github/workflows/ci.yml | 8 ++++++++ .vale.ini | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 .vale.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d39d67c..6543a8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,3 +42,11 @@ jobs: echo "::add-matcher::.github/actionlint-matcher.json" bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) ./actionlint + + reviewdog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: errata-ai/vale-action@reviewdog + with: + fail_on_error: true diff --git a/.vale.ini b/.vale.ini new file mode 100644 index 0000000..7e8e41e --- /dev/null +++ b/.vale.ini @@ -0,0 +1,5 @@ +StylesPath = .github/styles +MinAlertLevel = suggestion + +[*.md] +BasedOnStyles = Vale