From 92ff2797fa6b3d00d0ff5bec13205e9b3482618f Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 17 Oct 2023 17:19:21 +0000 Subject: [PATCH] No dup wfs (#6) Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/6 Co-authored-by: pat-s Co-committed-by: pat-s --- .woodpecker.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index b86ec8e..7548723 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -1,15 +1,21 @@ +when: + - event: [pull_request, tag, cron] + - event: push + branch: + - ${CI_REPO_DEFAULT_BRANCH} + variables: - - &golang 'golang:1.18' + - &golang "golang:1.18" steps: - - name: vendor + vendor: image: *golang commands: go mod vendor - - name: lint + lint: image: golangci/golangci-lint:v1.50-alpine commands: golangci-lint run - - name: test + test: image: *golang commands: go test --cover ./...