diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..82977eceb --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,29 @@ +# For more configuration details: +# https://docs.codecov.io/docs/codecov-yaml + +# Check if this file is valid by running in bash: +# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate + +# Coverage configuration +# ---------------------- +coverage: + status: + patch: false + + range: 90..100 # First number represents red, and second represents green + # (default is 70..100) + round: down # up, down, or nearest + precision: 2 # Number of decimal places, between 0 and 5 + +# Ignoring Paths +# -------------- +# which folders/files to ignore +# ignore: +# - */tests/.* + +# Pull request comments: +# ---------------------- +# Diff is the Coverage Diff of the pull request. +# Files are the files impacted by the pull request +comment: + layout: reach, diff, files # accepted in any order: reach, diff, flags, and/or files diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index ce441f6f3..663a084e3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -4,6 +4,7 @@ on: pull_request: paths: - '**/*.php' + - '.codecov.yml' - '.github/workflows/php.yml' - '.scrutinizer.yml' - 'composer.json' @@ -13,6 +14,7 @@ on: push: paths: - '**/*.php' + - '.codecov.yml' - '.github/workflows/php.yml' - '.scrutinizer.yml' - 'composer.json'