Run ci only when needed
This commit is contained in:
parent
aac7e7589f
commit
ec9ebb7dc6
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue