ci: fix cue linter

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
Sam Alba 2022-02-23 19:14:04 -08:00
parent ba0f565dbf
commit 492a7ff9c3

View File

@ -92,8 +92,10 @@ dagger.#Plan & {
input: _baseImages.cue input: _baseImages.cue
script: contents: #""" script: contents: #"""
# Format the cue code
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s
test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)" # Check that all formatted files where committed
test -z $(git status -s . | grep -e '^ M' | grep .cue | cut -d ' ' -f3)
"""# """#
workdir: mounts["dagger source code"].dest workdir: mounts["dagger source code"].dest
mounts: { mounts: {