File tree Expand file tree Collapse file tree 3 files changed +21
-15
lines changed
Expand file tree Collapse file tree 3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 3131 working-directory : ./docs
3232 steps :
3333 - uses : actions/checkout@v6
34- - uses : actions/setup-node@v6
35- with :
36- node-version : 20
37- package-manager-cache : false
38- - run : corepack enable
39- - run : make format-spellcheck-dictionary-check
34+ - uses : jdx/mise-action@v3
35+ - run : mise run docs:format-spellcheck-dictionary-check
4036 - run : yarn --immutable
4137 - run : yarn typecheck
4238 - run : yarn spellcheck
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -170,6 +170,25 @@ run = '''
170170cargo llvm-cov -p forest-filecoin --codecov --output-path lcov.info
171171'''
172172
173+ [tasks ."docs:format-spellcheck-dictionary" ]
174+ description = " Format and deduplicate the spellcheck dictionary."
175+ dir = " docs"
176+ run = '''
177+ TMPFILE=$(mktemp)
178+ cat dictionary.txt | sort --ignore-case | uniq > "$TMPFILE"
179+ mv "$TMPFILE" dictionary.txt
180+ '''
181+
182+ [tasks ."docs:format-spellcheck-dictionary-check" ]
183+ description = " Check if spellcheck dictionary is properly formatted."
184+ dir = " docs"
185+ run = '''
186+ TMPFILE=$(mktemp)
187+ trap "rm -f $TMPFILE" EXIT
188+ cat dictionary.txt | sort --ignore-case | uniq > "$TMPFILE"
189+ diff dictionary.txt "$TMPFILE"
190+ '''
191+
173192[tools ]
174193cargo-binstall = " 1.16.6"
175194go = " 1.25.5"
You can’t perform that action at this time.
0 commit comments