-
Notifications
You must be signed in to change notification settings - Fork 62
41 lines (36 loc) · 1.29 KB
/
spellcheck.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
38
39
40
41
# This workflow checks for common grammar and spelling mistake in markdown docs files.
name: Spellcheck
on:
pull_request:
branches: [main]
jobs:
build:
name: Check Grammar and Spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install ⚙️
run: yarn install --frozen-lockfile
# - name: Check spelling errors in docs content 📝
# uses: rojopolis/[email protected]
# with:
# source_files: docs/**/*.md docs/**/*.mdx
# task_name: Markdown
# output_file: spellcheck-output.txt
- name: Check spelling errors in code snippets 🔍
# Spellcheck can also check code snippets but has limited support for some languages
# Solidity code seems to not be supported.
# See: https://github.com/rojopolis/spellcheck-github-actions
uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
check_hidden: true
skip: yarn.lock,./node_modules/**/*,./yarn/**/*
- name: Output Spellcheck Results 📝
uses: actions/upload-artifact@v3
with:
name: Spellcheck Output
path: spellcheck-output.txt