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. <jonathan.gonzalez@enterprisedb.com>
Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
This commit is contained in:
Jonathan Gonzalez V. 2025-05-06 10:30:43 +02:00 committed by GitHub
parent ab398d7d30
commit 4be694bb1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,8 +30,18 @@ tasks:
sources:
- ./**/*.go
wordlist-ordered:
desc: Order the word list file
cmds:
- LANG=C LC_ALL=C sort .wordlist.txt > .wordlist.txt.new
- mv -f .wordlist.txt.new .wordlist.txt
sources:
- .wordlist.txt
spellcheck:
desc: Run spellcheck
deps:
- wordlist-ordered
env:
# renovate: datasource=git-refs depName=spellcheck lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
DAGGER_SPELLCHECK_SHA: ba865842d907910c469d016c3ecfa009e4c66915
@ -59,6 +69,7 @@ tasks:
deps:
- manifest-main
- apidoc
- wordlist-ordered
env:
# renovate: datasource=git-refs depName=uncommitted lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main
DAGGER_UNCOMMITTED_SHA: ba865842d907910c469d016c3ecfa009e4c66915