-
Notifications
You must be signed in to change notification settings - Fork 113
53 lines (45 loc) · 1.28 KB
/
checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Quality Checks
on:
pull_request:
jobs:
run-quality-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v39
id: changed-files
with:
files: '**/*.md'
separator: ','
- name: Lint Markdown files
uses: DavidAnson/markdownlint-cli2-action@v13.0.0
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','
config: '.markdownlint.json'
fix: true
continue-on-error: false
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install -g @cspell/dict-es-es
- name: Validate spelling
uses: streetsidesoftware/cspell-action@v5.4.0
with:
config: 'cspell.json'
files: '**/*.md'
inline: 'error'
strict: true
incremental_files_only: true
- name: Validate links in Markdown files
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
check-modified-files-only: 'yes'
config-file: 'link-config.json'
base-branch: 'main'
file-extension: '.md'