Skip to content

Commit

Permalink
ci: migrate to Vale (#3233)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Jul 2, 2024
1 parent 1f4ab47 commit 17dff40
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 415 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_KEY }}
AWS_DEFAULT_REGION: us-east-1
APPZI_TOKEN: ${{ secrets.APPZI_TOKEN }}
MENDABLE_API_KEY: ${{ secrets.MENDABLE_API_KEY }}
FULLSTORY_ORGID: ${{ secrets.FULLSTORY_ORGID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
Expand All @@ -39,22 +38,7 @@ jobs:
vale:
name: Writing Checks
needs: [run-ci]
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Vale Check
uses: errata-ai/vale-action@reviewdog
with:
filter_mode: added
reporter: github-pr-review
vale_flags: --glob=*.{md} --minAlertLevel=error
fail_on_error: false
version: 3.5.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: spectrocloud/spectro-vale-pkg/.github/workflows/vale.yml@main

prettier:
name: Check Code Formatting
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ artifact.zip

# Ignore _partials/index.ts
_partials/index.ts


.vale-config/
vale/styles/spectrocloud/
vale/styles/spectrocloud-docs-internal/
vale/styles/config/vocabularies/spectrocloud-vocab
8 changes: 4 additions & 4 deletions vale.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
StylesPath = vale/styles

Vocab = Internal
Vocab = spectrocloud-vocab

MinAlertLevel = suggestion

Packages = Google, write-good, alex
Packages = Google, write-good, alex, https://github.com/spectrocloud/spectro-vale-pkg/releases/latest/download/spectrocloud-docs-internal.zip

[*.md]
BasedOnStyles = Vale, Google, write-good, alex
IgnoredScopes = code, tt,
BasedOnStyles = Vale, Google, write-good, alex, spectrocloud-docs-internal
IgnoredScopes = code, tt, img, url, a,
; BlockIgnores =

; The following line ignores all import statements in markdown files
Expand Down
196 changes: 0 additions & 196 deletions vale/styles/config/vocabularies/Internal/accept.txt

This file was deleted.

20 changes: 0 additions & 20 deletions vale/styles/config/vocabularies/Internal/reject.txt

This file was deleted.

54 changes: 0 additions & 54 deletions vale/styles/spectrocloud/acronym.yml

This file was deleted.

8 changes: 0 additions & 8 deletions vale/styles/spectrocloud/admonitions.yml

This file was deleted.

13 changes: 0 additions & 13 deletions vale/styles/spectrocloud/colon.yml

This file was deleted.

17 changes: 0 additions & 17 deletions vale/styles/spectrocloud/condescending.yml

This file was deleted.

11 changes: 0 additions & 11 deletions vale/styles/spectrocloud/inclusive.yml

This file was deleted.

Loading

0 comments on commit 17dff40

Please sign in to comment.