undocker/.build.yml

22 lines
563 B
YAML

image: alpine/edge
packages:
- go
- git
- make
- shellcheck
sources:
- https://git.sr.ht/~motiejus/undocker
tasks:
- setup: |
go install honnef.co/go/tools/cmd/staticcheck@latest
- test: |
make -C undocker coverage.html
- lint: |
make -C undocker -O -j$(nproc) lint
- usage: |
# like 'grep -q', but prints output too.
# | tee /dev/stderr doesn't work on sourcehut workers; permission denied.
./undocker/undocker |& awk 'BEGIN{c=1};/Built with /{c=0};{print};END{exit c}'
artifacts:
- undocker/coverage.html