From 4be694bb1f02c9d1502b18dc14ab889d508c7c90 Mon Sep 17 00:00:00 2001 From: "Jonathan Gonzalez V." Date: Tue, 6 May 2025 10:30:43 +0200 Subject: [PATCH] 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. Signed-off-by: Francesco Canovai Co-authored-by: Francesco Canovai --- Taskfile.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index ba31932..c7cf01f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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