ci: Run spellcheck

This commit is contained in:
ieQu1 2022-03-14 11:05:07 +01:00
parent 4116d01bfb
commit 960c5ad0d5
3 changed files with 29 additions and 35 deletions

View File

@ -84,6 +84,10 @@ jobs:
with:
name: ${{ matrix.profile}}-${{ matrix.otp }}-${{ matrix.os }}
path: _packages/${{ matrix.profile}}/*.tar.gz
- uses: actions/upload-artifact@v2
with:
name: "${{ matrix.profile }}_schema_dump"
path: _build/*/lib/emqx_dashboard/priv/www/static/schema.json
windows:
runs-on: windows-2019
@ -204,3 +208,25 @@ jobs:
with:
name: macos
path: _packages/**/*.tar.gz
spellcheck:
needs: linux
strategy:
matrix:
profile:
- emqx-edge
- emqx
- emqx-enterprise
runs-on: ubuntu-20.04
container: "ghcr.io/iequ1/emqx-schema-validate:0.2.1"
steps:
- uses: actions/download-artifact@v2
name: Download schema dump
with:
name: "${{ matrix.profile }}_schema_dump"
path: /tmp/
- name: Run spellcheck
run: |
cd /LanguageTool
bash start.sh > /dev/null &
./emqx_schema_validate /tmp/${{ matrix.profile }}/lib/emqx_dashboard/priv/www/static/schema.json

View File

@ -1,32 +0,0 @@
name: Spellcheck
on:
workflow_run:
workflows: [Build slim packages]
types:
- completed
jobs:
spellcheck_schema:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
profile:
- emqx-enterprise
otp:
- 24.2.1-1
os:
- ubuntu20.04
steps:
- uses: actions/checkout@v2
- uses: dawidd6/action-download-artifact@v2
with:
name: ${{ matrix.profile }}-${{ matrix.otp }}-${{ matrix.os }}
workflow: build_slim_packages.yaml
path: .
- name: Run spellcheck
run: |
tar zxf *.tar.gz
find . -name schema.json -exec scripts/spellcheck \{\} \;

View File

@ -306,10 +306,10 @@ fields("node") ->
desc =>
"""
Path to the persistent data directory.
Possible auto-created sub-directories are:
Possible auto-created subdirectories are:
- `mnesia/\<node_name>`: EMQX's built-in database directory.
For example, `mnesia/emqx@127.0.0.1`.
There should be only one such sub directory.
There should be only one such subdirectory.
Meaning, in case the node is to be renamed (to e.g. `emqx@10.0.1.1`),
the old dir should be deleted first.
- `configs`: Generated configs at boot time, and cluster/local override configs.
@ -433,7 +433,7 @@ to <code>rlog</code>.
List of core nodes that the replicant will connect to.<br/>
Note: this parameter only takes effect when the <code>backend</code> is set
to <code>rlog</code> and the <code>role</code> is set to <code>replicant</code>.<br/>
This values needs to be defined for manual or static cluster discovery mechanisms.<br/>
This value needs to be defined for manual or static cluster discovery mechanisms.<br/>
If an automatic cluster discovery mechanism is being used (such as <code>etcd</code>),
there is no need to set this value.
"""