vale linter action #27
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: Lint with Vale | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
vale-lint: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Step 2: Install Vale | |
- name: Install Vale | |
run: | | |
sudo apt update | |
sudo snap install vale | |
vale --version | |
# Step 3: Run Vale linter | |
- name: Run Vale linter | |
run: | | |
vale --minAlertLevel=error docs/ | |
continue-on-error: false |