From 245c05858fa8f579534890f203fb74e53f69fd6e Mon Sep 17 00:00:00 2001 From: "alexey.zh" Date: Tue, 7 Jan 2025 09:02:59 +0500 Subject: [PATCH] codecovreport - integration with codecov --- .github/workflows/ci.yml | 8 ++++++++ README.md | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e681d3b..d113517 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,14 @@ jobs: - name: Run unit tests run: make test + - name: Generate coverage report + run: make test-cov + + - name: Upload results to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + # Note: makefile stages: build/install/kind-setup/test-integration - name: Run integration tests run: make test-integration diff --git a/README.md b/README.md index f4b87e7..178d569 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ _A `kubectl` plugin for substituting environment variables in Kubernetes manifes [![License](https://img.shields.io/github/license/hashmap-kz/kubectl-envsubst)](https://github.com/hashmap-kz/kubectl-envsubst/blob/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/hashmap-kz/kubectl-envsubst)](https://goreportcard.com/report/github.com/hashmap-kz/kubectl-envsubst) [![Workflow Status](https://img.shields.io/github/actions/workflow/status/hashmap-kz/kubectl-envsubst/ci.yml?branch=master)](https://github.com/hashmap-kz/kubectl-envsubst/actions/workflows/ci.yml?query=branch:master) +[![codecov](https://codecov.io/gh/hashmap-kz/kubectl-envsubst/branch/master/graph/badge.svg)](https://codecov.io/gh/hashmap-kz/kubectl-envsubst) [![GitHub Issues](https://img.shields.io/github/issues/hashmap-kz/kubectl-envsubst)](https://github.com/hashmap-kz/kubectl-envsubst/issues) [![Go Version](https://img.shields.io/github/go-mod/go-version/hashmap-kz/kubectl-envsubst)](https://github.com/hashmap-kz/kubectl-envsubst/blob/master/go.mod#L3) [![Latest Release](https://img.shields.io/github/v/release/hashmap-kz/kubectl-envsubst)](https://github.com/hashmap-kz/kubectl-envsubst/releases/latest)