mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Address: - github.com/docker/docker / github.com/containerd/containerd - CVE-2022-23471, CVE-2023-25153, CVE-2023-25173, CVE-2023-28840, CVE-2023-28841, CVE-2023-28842 - github.com/moby/moby - GHSA-vp35-85q5-9f25 - google.golang.org/protobuf - CVE-2023-24535, GHSA-hw7c-3rfg-p46j
31 lines
464 B
YAML
31 lines
464 B
YAML
version: '2'
|
|
|
|
env:
|
|
GOFLAGS: -mod=vendor
|
|
|
|
tasks:
|
|
default:
|
|
deps: [test]
|
|
|
|
lint:
|
|
desc: Checks code style
|
|
cmds:
|
|
- gofmt -d -s *.go
|
|
- go vet ./...
|
|
silent: true
|
|
|
|
lint-fix:
|
|
desc: Fixes code style
|
|
cmds:
|
|
- gofmt -w -s *.go
|
|
|
|
test:
|
|
desc: Runs go tests
|
|
cmds:
|
|
- go test -race ./...
|
|
|
|
test-coverage:
|
|
desc: Runs go tests and calculates test coverage
|
|
cmds:
|
|
- go test -race -coverprofile=c.out ./...
|