From bf48b7f58aa0a9ee6d96318462a6a936a7285d92 Mon Sep 17 00:00:00 2001 From: KevFan Date: Wed, 26 Jul 2023 16:58:17 +0100 Subject: [PATCH] workflow: add codecov --- .github/workflows/test.yaml | 6 ++++++ README.md | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9fca2f96..ecd59ab9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -81,3 +81,9 @@ jobs: - name: Run make test run: | make test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + flags: unit + verbose: true + fail_ci_if_error: true \ No newline at end of file diff --git a/README.md b/README.md index 2d8c43ae..a76ae780 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ A Kubernetes Operator to manage [Authorino](https://github.com/Kuadrant/authorino) instances. [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) +[![codecov](https://codecov.io/gh/Kuadrant/authorino-operator/branch/main/graph/badge.svg?token=3O9IUKS642)](https://codecov.io/gh/Kuadrant/authorino-operator) ## Installation