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 ./...