Refactor logging, rules, and improve GitHub Actions workflows #340
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: Spell Check | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| spellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the branch that triggered the workflow | |
| - name: Checkout branch | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| # Setup Node 22+ for cspell | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: '22' | |
| # Install cspell globally | |
| - name: Install cspell | |
| run: npm install -g cspell@10.0.1 | |
| # Run spell check | |
| - name: Run cspell | |
| run: npx cspell --no-progress --no-summary --config .github/cspell/cspell.json "**" |