ci: fixed output + implemented cue linter

Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
Sam Alba 2022-02-23 16:21:51 -08:00
parent 297fded56d
commit ba0f565dbf

View File

@ -29,13 +29,10 @@ dagger.#Plan & {
} }
} }
// FIXME? outputs: directories: "go binaries": {
// FTL failed to load plan: outputs.directories."go binaries".contents: undefined field: contents: contents: actions.build.export.directories["/build"]
// dest: "./build"
// outputs: directories: "go binaries": { }
// contents: actions.build.export.directories["/build"].contents
// dest: "./build"
// }
actions: { actions: {
_goModCache: "go mod cache": { _goModCache: "go mod cache": {
@ -91,11 +88,12 @@ dagger.#Plan & {
} }
} }
cueFmt: bash.#Run & { cueLint: bash.#Run & {
input: _baseImages.cue input: _baseImages.cue
script: contents: #""" script: contents: #"""
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)"
"""# """#
workdir: mounts["dagger source code"].dest workdir: mounts["dagger source code"].dest
mounts: { mounts: {