-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move action to spellcheck CI workflow + adjust files to check
- Loading branch information
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# This workflow checks for common grammar and spelling mistake in markdown docs files. | ||
name: Spellcheck | ||
on: workflow_dispatch | ||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Spellcheck | ||
name: Check Grammar and Spelling errors | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout ποΈ | ||
|
@@ -15,12 +17,22 @@ jobs: | |
- name: Install βοΈ | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Spellcheck π | ||
uses: rojopolis/[email protected] | ||
# - 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: | ||
source_files: docs/**/*.md docs/**/*.mdx | ||
task_name: Markdown | ||
output_file: spellcheck-output.txt | ||
check_filenames: true | ||
check_hidden: true | ||
skip: yarn.lock,./node_modules/**/*,./yarn/**/* | ||
|
||
- name: Output Spellcheck Results π | ||
uses: actions/upload-artifact@v3 | ||
|