Skip to content

Commit

Permalink
chore: add spellcheck to ci checks (carbon-design-system#4904)
Browse files Browse the repository at this point in the history
* chore: add spellcheck to ci checks

* fix: include no must find in husky config
  • Loading branch information
davidmenendez authored Apr 16, 2024
1 parent e8f80c1 commit 87595d8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ jobs:
- name: CI lint checks
run: yarn ci-check:lint

spellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20.x'
cache: yarn
- name: Cache dependencies
uses: actions/cache@v2
with:
path: '**/node_modules'
key: spellcheck-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install
run: yarn
- name: CI spellcheck checks
run: yarn ci-check:spellcheck

test-c4p:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"ci-check:tests": "run-p -s 'ci-check:test:*'",
"ci-check:test:c4p": "yarn test:c4p --ci",
"ci-check:test:community": "yarn test:community --ci",
"ci-check:spellcheck": "yarn spellcheck",
"clean": "run-p -s 'clean:*' && run-p -s 'clean:finally:*'",
"clean:cache": "yarn cache clean",
"clean:finally:files": "rimraf coverage node_modules results",
Expand Down Expand Up @@ -195,15 +196,15 @@
"!(examples/**/*)**/*.{js,jsx,ts,tsx}": [
"npx prettier --cache --write",
"npx eslint --fix",
"npx cspell"
"npx cspell --no-must-find-files"
],
"**/*.scss": [
"npx prettier --cache --write",
"npx stylelint --allow-empty-input"
],
"!(examples/**/*).md": [
"npx prettier --cache --write",
"npx cspell"
"npx cspell --no-must-find-files"
]
},
"dependencies": {
Expand Down

0 comments on commit 87595d8

Please sign in to comment.