From ec9ebb7dc6ac336ba73fcfc30155a9c04c1abc3a Mon Sep 17 00:00:00 2001 From: Ada Date: Sat, 25 May 2024 14:35:50 +0200 Subject: [PATCH] Run ci only when needed --- .woodpecker/lint.yaml | 6 ++++++ .woodpecker/test.yaml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.woodpecker/lint.yaml b/.woodpecker/lint.yaml index 51e5a9e..1ef6bf7 100644 --- a/.woodpecker/lint.yaml +++ b/.woodpecker/lint.yaml @@ -4,3 +4,9 @@ steps: commands: - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest - golangci-lint run +when: + - event: pull_request + repo: ada/spiegel + - event: push + branch: main + repo: ada/spiegel diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 7a4f5db..827f5bc 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -3,3 +3,10 @@ steps: image: golang:1.22 commands: - go test ./... + +when: + - event: pull_request + repo: ada/spiegel + - event: push + branch: main + repo: ada/spiegel