Skip to content

Commit 9c554c0

Browse files
authored
Add Vale testing workflow for pull requests
1 parent 269995e commit 9c554c0

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/vale-test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Vale Test
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
vale:
9+
name: Vale Check
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Install Vale
17+
run: |
18+
curl -fsSL https://github.com/errata-ai/vale/releases/latest/download/vale_3.12.0_Linux_64-bit.tar.gz \
19+
| tar xz
20+
sudo mv vale /usr/local/bin/
21+
22+
- name: Create Vale config
23+
run: |
24+
cat > .vale.ini <<EOF
25+
StylesPath = styles
26+
27+
[formats]
28+
mdx = md
29+
30+
[*.mdx]
31+
BasedOnStyles = Vale
32+
33+
[*.md]
34+
BasedOnStyles = Vale
35+
EOF
36+
37+
- name: Run Vale
38+
run: |
39+
vale docs src/pages

0 commit comments

Comments
 (0)