Skip to content

Commit a1839d2

Browse files
committed
Added Vale check action for CI testing(DO NOT MERGE)
1 parent 7ecde15 commit a1839d2

File tree

4 files changed

+70
-3
lines changed

4 files changed

+70
-3
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Lint with Vale on pull requests
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.adoc'
7+
- '**.md'
8+
- 'content/learn/**'
9+
- 'content/patterns/**'
10+
- 'content/contribute/**'
11+
- 'modules/**'
12+
- 'README.md'
13+
14+
jobs:
15+
vale-lint:
16+
name: Linting with Vale
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
- name: Install Asciidoctor
22+
run: sudo apt-get install -y asciidoctor
23+
- uses: errata-ai/[email protected]
24+
with:
25+
version: 3.12.0
26+
filter_mode: diff_context
27+
vale_flags: "--no-exit --minAlertLevel=error"
28+
fail_on_error: false
29+
reporter: github-pr-annotations
30+
token: ${{ secrets.VALE_GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Gemfile.lock
1616
.idea
1717
.vale
1818
modules/.vale.ini
19-
.vale.ini
19+
.vale

.vale.ini

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
StylesPath = .vale/styles
2+
3+
MinAlertLevel = warning
4+
5+
IgnoredScopes = code, tt, img, url, a, body.id
6+
7+
SkippedScopes = script, style, pre, figure, code, tt, blockquote, listingblock, literalblock
8+
9+
Packages = RedHat, AsciiDoc
10+
11+
[*.adoc]
12+
13+
BasedOnStyles = RedHat, AsciiDoc
14+
15+
[*.md]
16+
17+
BasedOnStyles = RedHat
18+
19+
# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs.
20+
TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[)
21+
22+
# Match INI files. See: https://docs.errata.ai/vale/scoping
23+
[*.ini]
24+
25+
BasedOnStyles = RedHat
26+
27+
# Ignore code surrounded by backticks or plus sign, parameters defaults, URLs.
28+
TokenIgnores = (\x60[^\n\x60]+\x60), ([^\n]+=[^\n]*), (\+[^\n]+\+), (http[^\n]+\[)
29+
30+
# Disabling rules (NO)
31+
RedHat.CaseSensitiveTerms = NO
32+
RedHat.ConfigMap = NO
33+
RedHat.Definitions = NO
34+
RedHat.Slash = NO
35+
RedHat.Spacing = NO
36+
RedHat.Spelling = NO
37+
RedHat.TermsSuggestions = NO

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This project contains the new proof-of-concept documentation site for [validated
44

55
Use a container image to build the Validated Patterns documentation, locally. See [Preview the documentation using a container image](https://validatedpatterns.io/contribute/contribute-to-docs/#_preview_the_documentation_using_a_container_image). This is recommended to ensure the local preview is the same as what is rendered in deployment pipelines.
66

7-
Alternatively, you can build this site using [Hugo](https://gohugo.io/) and [Asciidoctor](https://asciidoctor.org).
7+
Alternatively, you can build this site using [Hugo](https://gohugo.io/) and [Asciidoctor](https://asciidoctor.org).
88

99
## Install Hugo
1010

11-
You can install Hugo on different platforms (Linux, Windows, macOS) using a number of methods. For more information on how to install Hugo on your desired platform, see [Install Hugo](https://gohugo.io/getting-started/installing/).
11+
You can install Hugo on different platforms (Linux, Windows, macOS) using a number of methods. For more information on how to install Hugo on your desired platform, see [Install Hugo](https://gohugo.io/getting-started/installing/). Using several for testing.
1212

1313
## Install Asciidoctor
1414

0 commit comments

Comments
 (0)