Skip to content

Commit 4be694b

Browse files
sxdfcanovai
andauthored
ci: add word ordered task (#311)
Added a word list ordered to the Taskfile to run as a dependency of the `spellcheck` task to keep the .wordlist.txt file in order Closes #310 Signed-off-by: Jonathan Gonzalez V. <[email protected]> Signed-off-by: Francesco Canovai <[email protected]> Co-authored-by: Francesco Canovai <[email protected]>
1 parent ab398d7 commit 4be694b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Taskfile.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,18 @@ tasks:
3030
sources:
3131
- ./**/*.go
3232

33+
wordlist-ordered:
34+
desc: Order the word list file
35+
cmds:
36+
- LANG=C LC_ALL=C sort .wordlist.txt > .wordlist.txt.new
37+
- mv -f .wordlist.txt.new .wordlist.txt
38+
sources:
39+
- .wordlist.txt
40+
3341
spellcheck:
3442
desc: Run spellcheck
43+
deps:
44+
- wordlist-ordered
3545
env:
3646
# renovate: datasource=git-refs depName=spellcheck lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
3747
DAGGER_SPELLCHECK_SHA: ba865842d907910c469d016c3ecfa009e4c66915
@@ -59,6 +69,7 @@ tasks:
5969
deps:
6070
- manifest-main
6171
- apidoc
72+
- wordlist-ordered
6273
env:
6374
# renovate: datasource=git-refs depName=uncommitted lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
6475
DAGGER_UNCOMMITTED_SHA: ba865842d907910c469d016c3ecfa009e4c66915

0 commit comments

Comments
 (0)