From b70b418d6050090c3afdd5eb003154bc0d3b1b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Faure?= Date: Sun, 11 Apr 2021 22:15:42 +0200 Subject: [PATCH] Update workflow and README.md --- .github/workflows/npm-publish.yaml | 4 +++- README.md | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index c257182..fdb8962 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -31,7 +31,9 @@ jobs: - name: Unit tests coverage run: yarn coverage:unit - - name: Upload coverage to Codecov + - name: Upload unit tests coverage to Codecov + # upload unit test code coverage only when merged in master + if: github.repository == 'clement-faure/mui-rhf' && (github.ref == 'refs/heads/master') uses: codecov/codecov-action@v1 with: flags: unittests # optional diff --git a/README.md b/README.md index ca84ad8..98d0fe8 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/clement-faure/mui-rhf/npm-publish)](https://github.com/clement-faure/mui-rhf/actions/workflows/npm-publish.yaml) - -[![codecov](https://codecov.io/gh/clement-faure/mui-rhf/branch/master/graph/badge.svg?token=6B35E5LUCT)](https://codecov.io/gh/clement-faure/mui-rhf) +[![codecov](https://img.shields.io/codecov/c/github/clement-faure/mui-rhf/master.svg)](https://codecov.io/gh/clement-faure/mui-rhf/branch/master) Quickly build powerful forms using [Material UI](https://material-ui.com/) and [React Hook Form](https://react-hook-form.com/)