From 7aa02a1aa206117b3259badac4a00c333fe658c9 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 23 Aug 2024 00:57:04 +0200 Subject: [PATCH] ci: add lint pipeline --- .woodpecker/lint.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .woodpecker/lint.yaml diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml new file mode 100644 index 0000000..2bde80b --- /dev/null +++ b/.woodpecker/lint.yaml @@ -0,0 +1,25 @@ +--- +when: + event: pull_request + +steps: + woodpecker: + image: woodpeckerci/woodpecker-cli:v2.7.0-alpine + commands: + - woodpecker-cli lint .woodpecker/*.yaml + when: + path: .woodpecker/**/*.yaml + depends_on: [] + + dockerfile: + image: ghcr.io/hadolint/hadolint:v2.12.0 + when: + path: + - Dockerfile + depends_on: [] + + cspell: + image: ghcr.io/streetsidesoftware/cspell:8.13.3 + commands: + - /usr/local/bin/cspell-cli lint . + depends_on: []