Skip to content

Commit 14e0919

Browse files
committed
add vale style check
1 parent 854640c commit 14e0919

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/vale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Style check
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
style-job:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out
12+
uses: actions/checkout@v3
13+
14+
# For AsciiDoc users:
15+
- name: Install Asciidoctor
16+
run: sudo apt-get install -y asciidoctor
17+
18+
- name: Run Vale
19+
uses: errata-ai/vale-action@reviewdog
20+
env:
21+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
with:
23+
fail_on_error: true
24+
reporter: github-pr-check
25+
filter_mode: added
26+
files: latest/ug
27+
continue-on-error: false

.vale.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
StylesPath = vale/styles
2+
3+
Packages = RedHat, AsciiDoc
4+
5+
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files
6+
[[!.]*.adoc]
7+
BasedOnStyles = RedHat, AsciiDoc
8+
RedHat.GitLinks = OFF
9+
AsciiDoc.UnsetAttributes = OFF
10+
RedHat.CaseSensitiveTerms = suggestion
11+
RedHat.TermsErrors = warning
12+
RedHat.Spacing = warning

0 commit comments

Comments
 (0)