diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..ff9d971 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,12 @@ +--- +version: "2" + +plugins: + fixme: + enabled: true + gofmt: + enabled: true + golint: + enabled: true + govet: + enabled: true diff --git a/.copier-answers.yml b/.copier-answers.yml index 3fbb438..a317390 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: v0.1.0 +_commit: v0.1.1 _src_path: https://github.com/wabenet/copier-dodo-plugin author_email: ole.claussen@wabenet.com author_name: Ole Claussen diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7bf4d0c..b441490 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,7 +31,7 @@ jobs: go-version: 1.18 - name: Test and coverage - run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... + run: go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./... - name: Upload to codecov run: bash <(curl -s https://codecov.io/bash) @@ -58,5 +58,5 @@ jobs: - name: Upload to codeclimate run: | - go test -race -coverprofile=c.out -covermode=atomic ./... + go test -race -coverprofile=c.out -covermode=atomic -coverpkg=./... ./... ./cc-test-reporter after-build -t gocov -p $(go list -m) diff --git a/README.md b/README.md index 94de685..994c90d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +![release](https://img.shields.io/github/v/release/wabenet/dodo-docker?sort=semver) +![build](https://img.shields.io/github/workflow/status/wabenet/dodo-docker/CI?logo=github) +![codecov](https://img.shields.io/codecov/c/github/wabenet/dodo-docker?logo=codecov) +![codeclimate](https://img.shields.io/codeclimate/maintainability/wabenet/dodo-docker?logo=codeclimate) +![license](https://img.shields.io/github/license/wabenet/dodo-docker) + # dodo docker plugin Adds support for the Docker daemon as a dodo runtime plugin. diff --git a/dodo.yaml b/dodo.yaml index 582a2e2..b408a62 100644 --- a/dodo.yaml +++ b/dodo.yaml @@ -5,7 +5,7 @@ backdrops: FROM golang:1.18 RUN apt-get update && apt-get install -y git bash curl tree make RUN go install github.com/goreleaser/goreleaser@latest - RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0 + RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0 volumes: - "{{ projectRoot }}:/build" - "{{ projectRoot }}/.cache:/go/pkg/mod"