From bf7c6dcff49a67bf532af055926aab2d79c37fa4 Mon Sep 17 00:00:00 2001 From: Splines <37160523+Splines@users.noreply.github.com> Date: Wed, 10 Jul 2024 15:04:43 +0200 Subject: [PATCH] Disable Codecov patch/project checks in CI/CD (#664) * 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 23fffef91ba88d1026e9cecd417390f3d553f833. --- .codecov.yml | 15 +++++++++++++++ .config/.codecov.yml | 5 ----- .github/workflows/tests.yml | 1 - 3 files changed, 15 insertions(+), 6 deletions(-) create mode 100644 .codecov.yml delete mode 100644 .config/.codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..62f1dbaa3 --- /dev/null +++ b/.codecov.yml @@ -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 diff --git a/.config/.codecov.yml b/.config/.codecov.yml deleted file mode 100644 index 9e14ade12..000000000 --- a/.config/.codecov.yml +++ /dev/null @@ -1,5 +0,0 @@ -# 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" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 87bb2ec24..f6ad48da5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: