Skip to content

Added cSpell command and GitHub action #3

Added cSpell command and GitHub action

Added cSpell command and GitHub action #3

Workflow file for this run

# Workflow to check cSpell on entire monorepo
name: cSpell
on:
workflow_dispatch:
pull_request:
branches:
- master
- release/*
jobs:
spell-check:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Configure git
run: |
git config --local user.email [email protected]
git config --local user.name imodeljs-admin
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Rush install
run: node common/scripts/install-run-rush.js install
- name: Run cSpell
run: npx cspell lint "**" --gitignore
- name: Check for misspellings
if: failure()
run: echo "Misspellings found in code. Please fix them."