forked from deblan/database-anonymizer
add ci
This commit is contained in:
parent
2081937a24
commit
7be1382051
2 changed files with 42 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue