Skip to content

Commit

Permalink
Disable Codecov patch/project checks in CI/CD (#664)
Browse files Browse the repository at this point in the history
* Update codecov status check settings

* Modify random ruby lines for testing purposes

* Disable project and patch Codecov reports

* Fix path to codecov config file

* Add "**/*" to codecov paths

* Try out different syntax to disable project/patch

* Revert to new codecov syntax

* Try not to use relative path for codecov.yml

* Try to put codecov config back to root folder

* Add comment explaining situation

* Revert "Modify random ruby lines for testing purposes"

This reverts commit 23fffef.
  • Loading branch information
Splines authored Jul 10, 2024
1 parent e7d6053 commit bf7c6dc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
15 changes: 15 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# We'd like to place this file to the .config/ folder as well,
# however Codecov doesn't support it yet (or is buggy, see
# https://github.com/codecov/codecov-action/issues/1465)

# Ignore test files themselves in the Codecov report
# see: https://about.codecov.io/blog/should-i-include-test-files-in-code-coverage-calculations/
ignore:
- "spec/**/*"
- "**/*_spec.rb"

# https://docs.codecov.com/docs/commit-status
coverage:
status:
project: off
patch: off
5 changes: 0 additions & 5 deletions .config/.codecov.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
files: ./coverage/coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
codecov_yml_path: ./config/codecov.yml

# Cypress end-to-end tests
e2e-tests:
Expand Down

0 comments on commit bf7c6dc

Please sign in to comment.