From d3cb8cb26c1182e032c655a0b5c9891b4b652630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berislav=20Balogovi=C4=87?= Date: Tue, 22 Oct 2024 19:54:20 +0200 Subject: [PATCH] Add Codecov --- .github/workflows/tests.yaml | 15 +++++++-------- README.md | 3 ++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 15d7156..b9e53ce 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -71,12 +71,11 @@ jobs: require_tests: 'true' report_paths: ./junit.xml - - name: Report Test Coverage - if: ${{ github.event_name == 'pull_request' }} - uses: slavcodev/coverage-monitor-action@v1 + - name: Upload Test Coverage + if: ${{ success() }} + uses: codecov/codecov-action@v4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - coverage_path: coverage.xml - threshold_alert: 3 - threshold_warning: 50 - comment_mode: update + file: coverage.xml + flags: ${{ matrix.php }} + token: ${{ secrets.CODECOV_TOKEN }} + codecov_yml_path: .github/codecov.yaml diff --git a/README.md b/README.md index 3d65867..9996a93 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # SofascorePurgatoryBundle -[![Build Status](https://github.com/sofascore/purgatory-bundle/workflows/Tests/badge.svg)](https://github.com/sofascore/purgatory-bundle/actions) [![Latest Stable Version](https://poser.pugx.org/sofascore/purgatory-bundle/v/stable)](https://packagist.org/packages/sofascore/purgatory-bundle) +[![Build Status](https://github.com/sofascore/purgatory-bundle/workflows/Tests/badge.svg)](https://github.com/sofascore/purgatory-bundle/actions) +[![Code Coverage](https://codecov.io/gh/sofascore/purgatory-bundle/graph/badge.svg?token=HWMVLVSTIC)](https://codecov.io/gh/sofascore/purgatory-bundle) [![License](https://poser.pugx.org/sofascore/purgatory-bundle/license)](https://packagist.org/packages/sofascore/purgatory-bundle) A Symfony bundle for creating and sending cache purge requests to HTTP cache backends like Varnish.