test(config,git,logger): add some test functions
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/build unknown status
ci/woodpecker/push/deploy unknown status

This commit is contained in:
Tom Neuber 2024-12-06 23:56:18 +01:00
parent 2e41d3d004
commit b22d060cc6
Signed by: tom
GPG key ID: F17EFE4272D89FF6
16 changed files with 419 additions and 25 deletions

View file

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

View file

@ -23,4 +23,6 @@ steps:
- branch: main
event: push
depends_on:
- build
- build
- lint
- test

View file

@ -1,4 +1,17 @@
steps:
- name: gofmt
image: golang:1.22.5
commands:
- gofmt -l -s .
when:
- event: push
- name: vuln-check
image: golang:1.22.5
commands:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
when:
- event: push
- name: golangci-linter
image: golangci/golangci-lint:v1.59.1
commands:

View file

@ -1,7 +1,9 @@
steps:
- name: gofmt
- name: gotest
image: golang:1.22.5
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.22.5
commands:
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
when:
- event: push