Run ci only when needed
Some checks failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/lint Pipeline failed

This commit is contained in:
Ada 2024-05-25 14:35:50 +02:00
parent aac7e7589f
commit ec9ebb7dc6
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
2 changed files with 13 additions and 0 deletions

View file

@ -4,3 +4,9 @@ steps:
commands: commands:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- golangci-lint run - golangci-lint run
when:
- event: pull_request
repo: ada/spiegel
- event: push
branch: main
repo: ada/spiegel

View file

@ -3,3 +3,10 @@ steps:
image: golang:1.22 image: golang:1.22
commands: commands:
- go test ./... - go test ./...
when:
- event: pull_request
repo: ada/spiegel
- event: push
branch: main
repo: ada/spiegel