fix GitHub Workflow to check syntax with Vale #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Syntax Validation | |
on: [push, workflow_dispatch] | |
jobs: | |
syntax-check: | |
name: vale | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@main | |
- name: Download .vale.ini | |
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/.vale.ini -O .vale.ini | |
- name: Create the folders | |
run: | | |
mkdir -p styles && mkdir -p styles/Custom && mkdir -p styles/Vocab && mkdir -p styles/Vocab/base | |
- name: Download Custom Style ignore.txt | |
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/styles/Custom/ignore.txt -O styles/Custom/ignore.txt | |
- name: Download Custom Style spelling.yml | |
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/styles/Custom/spelling.yml -O styles/Custom/spelling.yml | |
- name: Download Custom Style substitutions.yml | |
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/styles/Custom/substitutions.yml -O styles/Custom/substitutions.yml | |
- name: Download base Vocab accept.txt | |
run: wget https://raw.githubusercontent.com/fharper/gh-configs/main/styles/Vocab/base/accept.txt -O styles/Vocab/base/accept.txt | |
- name: Install Vale | |
run: | | |
wget https://github.com/errata-ai/vale/releases/download/v2.30.0/vale_2.30.0_Linux_64-bit.tar.gz -O vale.tar.gz | |
tar -xvzf vale.tar.gz vale | |
rm vale.tar.gz | |
- name: Validate the syntax | |
run: ./vale --config=.vale.ini *.md |