diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e27b13b..06ea7bf 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,4 +1,4 @@ -name: pr +name: PR Build on: push: @@ -26,4 +26,11 @@ jobs: run: go build -v ./... - name: Go Test - run: go test -v ./... \ No newline at end of file + run: go test -v ./... + + - name: Update coverage report + uses: ncruces/go-coverage-report@v0.2.7 + with: + report: true + reuse-go: true + continue-on-error: true \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a914106..3d3ae1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: release +name: Release on: push: diff --git a/README.md b/README.md index caa95f7..64c3907 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # node-gizmo A CLI utility for your Kubernetes nodes. +[![Build](https://github.com/Kavinraja-G/node-gizmo/actions/workflows/pr.yaml/badge.svg)](https://github.com/Kavinraja-G/node-gizmo/actions/workflows/pr.yaml) +[![Release](https://github.com/Kavinraja-G/node-gizmo/actions/workflows/release.yml/badge.svg)](https://github.com/Kavinraja-G/node-gizmo/actions/workflows/release.yml) +[![Go Coverage](https://github.com/Kavinraja-G/node-gizmo/wiki/coverage.svg)](https://raw.githack.com/wiki/Kavinraja-G/node-gizmo/coverage.html) + ### Installation nodegizmo kubectl plugin is available in [krew](https://krew.sigs.k8s.io/) plugin manager. Anyone can install with the following steps: 1. Install `krew` for kuebctl using the following [doc](https://krew.sigs.k8s.io/docs/user-guide/setup/install/).