diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6d21351..6b5dde3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -8,6 +8,9 @@ concurrency: group: pr-${{ github.ref }} cancel-in-progress: true +env: + VALE_VERSION: "3.5.0" + jobs: run-ci: # runs-on: ubuntu-latest @@ -32,6 +35,14 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Get Vale + run: | + URL="https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz" + wget --quiet $URL --output-document vale.tar.gz + tar -xzf vale.tar.gz + chmod +x vale + sudo mv vale /usr/local/bin/ + - name: Test Files Present? run: make required_files diff --git a/packages/spectrocloud/tests/plural-parantheses/.vale.ini b/packages/spectrocloud/tests/plural-parantheses/.vale.ini new file mode 100644 index 0000000..46e8310 --- /dev/null +++ b/packages/spectrocloud/tests/plural-parantheses/.vale.ini @@ -0,0 +1,4 @@ +StylesPath = ../../styles/ +MinAlertLevel = suggestion +[*.md] +spectrocloud.Plural-Parantheses = YES \ No newline at end of file diff --git a/packages/spectrocloud/tests/plural-parantheses/fail.md b/packages/spectrocloud/tests/plural-parantheses/fail.md new file mode 100644 index 0000000..8f1d57f --- /dev/null +++ b/packages/spectrocloud/tests/plural-parantheses/fail.md @@ -0,0 +1,7 @@ +## Parameters + +The following parameter(s) are supported: + +- `name` (string, required): The name of the user. + +- `age` (number, required): The age of the user. diff --git a/packages/spectrocloud/tests/plural-parantheses/pass.md b/packages/spectrocloud/tests/plural-parantheses/pass.md new file mode 100644 index 0000000..53cd7cd --- /dev/null +++ b/packages/spectrocloud/tests/plural-parantheses/pass.md @@ -0,0 +1,7 @@ +## Parameters + +The following parameters are supported: + +- `name` (string, required): The name of the user. + +- `age` (number, required): The age of the user.