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 d6282ab commit b35bf3f
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 530 deletions.
17 changes: 1 addition & 16 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,21 +38,7 @@ jobs:
vale:
name: Writing Checks
needs: [run-ci]
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- 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 @@ -69,3 +69,9 @@ artifact.zip
.netlify/
# Ignore _partials/index.ts
_partials/index.ts


.vale-config/
vale/styles/spectrocloud/
vale/styles/spectrocloud-docs-internal/
vale/styles/config/vocabularies/spectrocloud-vocab
6 changes: 3 additions & 3 deletions vale.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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, spectrocloud
BasedOnStyles = Vale, Google, write-good, alex, spectrocloud-docs-internal
IgnoredScopes = code, tt, img, url, a,
; BlockIgnores =

Expand Down
211 changes: 0 additions & 211 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.

23 changes: 0 additions & 23 deletions vale/styles/spectrocloud/ableism.yml

This file was deleted.

56 changes: 0 additions & 56 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.

Loading

0 comments on commit b35bf3f

Please sign in to comment.