Skip to content

Commit

Permalink
ci: migrate to Vale (#3233) (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding authored Jul 2, 2024
1 parent b4bd0ea commit 12fe169
Show file tree
Hide file tree
Showing 22 changed files with 11 additions and 527 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 @@ -66,3 +66,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, spectrocloud
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
209 changes: 0 additions & 209 deletions vale/styles/config/vocabularies/Internal/accept.txt

This file was deleted.

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

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.

Loading

0 comments on commit 12fe169

Please sign in to comment.