Run ci only when needed
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful

This commit is contained in:
Ada 2024-05-25 14:35:50 +02:00
parent aac7e7589f
commit 099419bbbd
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
3 changed files with 17 additions and 4 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