refactor: restructure project
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2024-11-26 13:35:54 +01:00
parent 1bde2041e1
commit 8215e1f13a
Signed by: tom
GPG key ID: F17EFE4272D89FF6
21 changed files with 850 additions and 269 deletions

View file

@ -38,5 +38,5 @@ steps:
exclude: main
event: push
depends_on:
- gofmt
- vulncheck
- lint
- test

View file

@ -55,3 +55,5 @@ steps:
event: push
depends_on:
- build
- lint
- test

20
.woodpecker/.lint.yaml Normal file
View file

@ -0,0 +1,20 @@
steps:
- name: gofmt
image: golang:1.23.3
commands:
- gofmt -l -s .
when:
- event: push
- name: vuln-check
image: golang:1.23.3
commands:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
when:
- event: push
- name: golangci-linter
image: golangci/golangci-lint:v1.62.0
commands:
- golangci-lint run ./...
when:
- event: push

View file

@ -1,7 +1,9 @@
steps:
- name: gofmt
- name: gotest
image: golang:1.23.3
commands:
- gofmt -l -s .
- go test ./...
when:
- event: push
depends_on:
- lint

View file

@ -1,8 +0,0 @@
steps:
- name: vuln-check
image: golang:1.23.3
commands:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
when:
- event: push