-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (27 loc) · 983 Bytes
/
check-spelling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# SPDX-FileCopyrightText: 2021-2025 Jens A. Koch.
# SPDX-License-Identifier: MIT
#
# This file is part of https://github.com/jakoch/cpp-devbox
#
name: "Check Spelling"
on:
# This workflow runs on pushing to the default branch.
push:
# You can manually run this workflow.
workflow_dispatch:
jobs:
# ---------------------------------------------------------------------------------------
check-spelling:
# ---------------------------------------------------------------------------------------
name: "Spell Checker"
runs-on: ubuntu-24.04
steps:
- name: 🤘 Checkout Code
uses: actions/checkout@v4 # https://github.com/actions/checkout
- name: 🔽 Install Dependencies
run: sudo npm install -g cspell
- name: 🙏 Check Spelling using cspell
run: |
export CSPELL_OUTPUT=$(sudo cspell lint --no-summary --no-progress .)
if [ -n "$CSPELL_OUTPUT" ]; then echo "$CSPELL_OUTPUT" && exit 1; fi;