Introduce github workflows for cspell and textlint #15
Workflow file for this run
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: Check text linter rules # cSpell:ignore refcache startswith | |
on: | |
pull_request: | |
jobs: | |
check-formatting: | |
name: Check text linter rules | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'npm' | |
# Make sure that we only install the dependencies for textlint to speed up install | |
- run: | | |
jq 'del(.dependencies) | .scripts |= with_entries(select(.key | contains("check:"))) | .devDependencies |= with_entries( select(.key | startswith("textlint")))' package.json > package2.json && mv package2.json package.json | |
- run: npm ci | |
- run: npm run check:textlint |