From 3e2954f33b9b27107342d5ecae6fc3cf4fd3ac7f Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sun, 4 May 2025 19:48:08 +0200 Subject: [PATCH] fixup! build: add woodpecker --- .woodpecker.yaml | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b00cefc..14dcc7f 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,24 +1,50 @@ pipeline: lint: - image: alpine:3.21 + image: alpine:3.19 commands: - apk add --no-cache shellcheck git - git clone ${CI_REPO_REMOTE} . - shellcheck $(find . -type f -name "*.sh") - build: + setup: image: ubuntu:24.04 depends_on: - lint - environment: - DOCKER_API_VERSION: "1.45" commands: - apt-get update -y - apt-get install -y --no-install-recommends curl sudo gnupg2 libx11-dev nscd - curl https://mise.run | sh - export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH" - mise install + + golangci-lint: + image: golangci/golangci-lint:v1.64.2 + depends_on: + - setup + commands: - git clone ${CI_REPO_REMOTE} . + - golangci-lint run ./... + + check_gomod: + image: ubuntu:24.04 + depends_on: + - golangci-lint + commands: + - export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH" - mise run check_gomod + + test: + image: ubuntu:24.04 + depends_on: + - check_gomod + commands: + - export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH" - mise run test_ci + + test_integration: + image: ubuntu:24.04 + depends_on: + - test + commands: + - export PATH="$HOME/.local/share/mise/bin:$HOME/.local/share/mise/shims:$PATH" - mise run test_integration_ci