site/.woodpecker.yaml

20 lines
858 B
YAML
Raw Normal View History

steps:
2024-12-13 20:59:45 +00:00
- name: HTML syntax check
2024-12-13 20:45:38 +00:00
- name: build
2024-12-13 20:59:45 +00:00
image: debian:12
2024-12-13 20:45:38 +00:00
image: debian
2024-12-13 20:59:45 +00:00
# Debian has tidy 5.6.0, which complains about the "loading" tag in img.
# We need a more recent version for now.
2024-04-28 10:51:54 +00:00
commands:
2024-12-13 20:59:45 +00:00
commands:
- DEBIAN_FRONTEND=noninteractive apt update -qq
2024-12-13 20:45:38 +00:00
- echo "This is the build step"
2024-12-13 20:59:45 +00:00
- DEBIAN_FRONTEND=noninteractive apt install -qq -y wget
2024-12-13 20:45:38 +00:00
- echo "binary-data-123" > executable
2024-12-13 20:59:45 +00:00
- wget -q https://github.com/htacg/tidy-html5/releases/download/5.8.0/tidy-5.8.0-Linux-64bit.deb
2024-12-13 20:45:38 +00:00
- name: a-test-step
2024-12-13 20:59:45 +00:00
- echo "59e594312207234f5a17455683c13c6bc47a89cb7bf994d493acfffb591d9830 tidy-5.8.0-Linux-64bit.deb" | sha256sum -c
2024-12-13 20:45:38 +00:00
image: golang:1.16
2024-12-13 20:59:45 +00:00
- DEBIAN_FRONTEND=noninteractive apt install -qq -y ./tidy-5.8.0-Linux-64bit.deb
- tidy -q -e --drop-empty-elements no static/index.html