Skip to content

Commit c75989e

Browse files
authored
Merge pull request plone#1391 from plone/gha-vale
Attempt to run Vale in GitHub Actions
2 parents d299f65 + a32a9a6 commit c75989e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
run: |
2121
python -m pip install --upgrade pip
2222
pip install -q -r requirements.txt
23+
sudo snap install --edge vale
2324
2425
- name: Run tests with make test
2526
run: make test
27+
28+
- name: Run vale
29+
run: |
30+
git clone https://github.com/errata-ai/Microsoft.git
31+
cp -r ./Microsoft/Microsoft ./styles
32+
VALEFILES=$(find -L ./docs/ -type d \( -path "./docs/plone.restapi/lib/*" -o -path "./docs/plone.restapi/performance/*" \) -prune -false -o -type f -name "*.md" -print)
33+
vale --no-exit $VALEFILES

0 commit comments

Comments
 (0)