162949d87d
- `Makefile` now uses `dagger do lint` to lint - GHA uses dagger to lint Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
37 lines
521 B
CUE
37 lines
521 B
CUE
package markdownlint
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
|
|
"universe.dagger.io/docker"
|
|
)
|
|
|
|
#Lint: {
|
|
// Source code
|
|
source: dagger.#FS
|
|
|
|
// shellcheck version
|
|
version: *"0.31.1" | string
|
|
|
|
// Files to lint
|
|
files: [...string]
|
|
|
|
_image: docker.#Pull & {
|
|
source: "tmknom/markdownlint:\(version)"
|
|
}
|
|
|
|
docker.#Run & {
|
|
input: _image.output
|
|
mounts: "source": {
|
|
dest: "/src"
|
|
contents: source
|
|
}
|
|
workdir: "/src"
|
|
command: {
|
|
// FIXME: this should not be required
|
|
name: "markdownlint"
|
|
args: files
|
|
}
|
|
}
|
|
}
|