Skip to content

Commit

Permalink
Add Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
HypeMC committed Oct 22, 2024
1 parent d22cffa commit d3cb8cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit d3cb8cb

Please sign in to comment.