chore(ci,docs): add CI, fix docs links, enforce SPM-only #3
This file contains hidden or 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: Markdown Quality | |
on: | |
pull_request: | |
paths: ['**/*.md'] | |
jobs: | |
quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm i -g textlint @textlint/markdown textlint-rule-terminology textlint-rule-no-dead-link | |
- run: | | |
cat > .textlintrc.json <<'JSON' | |
{ | |
"rules": { | |
"terminology": true, | |
"no-dead-link": { "checkRelative": true } | |
} | |
} | |
JSON | |
- run: textlint -f pretty-error '**/*.md' |