1
0
Files
dotfiles/.config/dotfiles/woodpecker.yml
Konstantin Demin 37599593bc
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: switch to Debian 13 "Trixie"
2025-08-18 12:08:45 +03:00

35 lines
1.1 KiB
YAML

steps:
- name: check
image: docker.io/debian:trixie-slim
environment:
DEBCONF_NONINTERACTIVE_SEEN: 'true'
DEBIAN_FRONTEND: 'noninteractive'
DEBIAN_PRIORITY: 'critical'
TERM: 'linux'
MALLOC_ARENA_MAX: '4'
commands:
- |
: # install required packages
apt-get -y update
apt-get -y install file findutils git shellcheck zsh
apt-get -y clean
- |
: # verify that repo doesn't contain "garbage"
find_fast() {
find "$@" -printf . -quit | grep -Fq .
}
if find_fast ./ -type f -name '*.zwc' ; then
echo 'found *.zwc' >&2
find ./ -type f -name '*.zwc' | sort -V
exit 1
fi
- |
: # try zsh compile
git ls-files | sort -uV | xargs -r file -N -i | grep text/x-shellscript | cut -d: -f1 \
| xargs -r -n1 zsh -efc 'zcompile -UR "$@"' --
find ./ -type f -name '*.zwc' -delete
- |
: # try shellcheck (except for *.zsh)
git ls-files | grep -Fv '.zsh' | sort -uV | xargs -r file -N -i | grep text/x-shellscript | cut -d: -f1 \
| xargs -r -n1 shellcheck