2026-03-17 10:02:58 +00:00
|
|
|
# .woodpecker/ci.yml — Disinto CI pipeline
|
|
|
|
|
# Runs on every push and pull request.
|
|
|
|
|
#
|
|
|
|
|
# Steps:
|
|
|
|
|
# 1. shellcheck — lint all .sh files (warnings+errors)
|
|
|
|
|
# 2. duplicate-detection — report copy-pasted code blocks (non-blocking)
|
|
|
|
|
|
2026-03-17 10:18:39 +00:00
|
|
|
when:
|
|
|
|
|
event: [push, pull_request]
|
|
|
|
|
|
2026-03-17 10:02:58 +00:00
|
|
|
steps:
|
|
|
|
|
- name: shellcheck
|
|
|
|
|
image: koalaman/shellcheck-alpine:stable
|
|
|
|
|
commands:
|
2026-03-18 01:53:02 +00:00
|
|
|
- find . -name "*.sh" -not -path "./.git/*" -print0 | xargs -0 -r shellcheck --severity=warning
|
2026-03-17 10:02:58 +00:00
|
|
|
|
2026-03-18 17:11:02 +00:00
|
|
|
- name: agent-smoke
|
|
|
|
|
image: alpine:3
|
|
|
|
|
commands:
|
|
|
|
|
- apk add --no-cache bash
|
|
|
|
|
- bash .woodpecker/agent-smoke.sh
|
|
|
|
|
|
2026-03-17 10:02:58 +00:00
|
|
|
- name: duplicate-detection
|
|
|
|
|
image: python:3-alpine
|
|
|
|
|
commands:
|
|
|
|
|
- python3 .woodpecker/detect-duplicates.py
|
|
|
|
|
failure: ignore
|