Skip to content

Commit

Permalink
ci: added vale version
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Jun 26, 2024
1 parent 3d04a80 commit 69c1ad6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions packages/spectrocloud/tests/plural-parantheses/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
StylesPath = ../../styles/
MinAlertLevel = suggestion
[*.md]
spectrocloud.Plural-Parantheses = YES
7 changes: 7 additions & 0 deletions packages/spectrocloud/tests/plural-parantheses/fail.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 7 additions & 0 deletions packages/spectrocloud/tests/plural-parantheses/pass.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 69c1ad6

Please sign in to comment.