add ci
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Simon Vieille 2024-03-20 12:32:57 +01:00
parent 2081937a24
commit 7be1382051
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 42 additions and 0 deletions

21
.woodpecker/build.yml Normal file
View 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
View 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 ./...