add ci
This commit is contained in:
parent
2081937a24
commit
7be1382051
21
.woodpecker/build.yml
Normal file
21
.woodpecker/build.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
when:
|
||||
- event: [pull_request, tag]
|
||||
- event: push
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
- release/*
|
||||
- renovate/*
|
||||
|
||||
variables:
|
||||
- &golang_image 'docker.io/golang:1.22.0'
|
||||
|
||||
steps:
|
||||
"Add vendor":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go mod vendor
|
||||
|
||||
"Run build":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go build
|
21
.woodpecker/test.yml
Normal file
21
.woodpecker/test.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
when:
|
||||
- event: [pull_request, tag]
|
||||
- event: push
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
- release/*
|
||||
- renovate/*
|
||||
|
||||
variables:
|
||||
- &golang_image 'docker.io/golang:1.22.0'
|
||||
|
||||
steps:
|
||||
"Add vendor":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go mod vendor
|
||||
|
||||
"Run tests":
|
||||
image: *golang_image
|
||||
commands:
|
||||
- go test -v ./...
|
Loading…
Reference in a new issue