From ba29bb81cecdc78f68aa18db07a47a6898961728 Mon Sep 17 00:00:00 2001 From: Neel Shah Date: Thu, 5 Oct 2023 15:21:33 +0200 Subject: [PATCH] Try codecov components and use official action for uploads (#2128) --- .github/workflows/sentry_delayed_job_test.yml | 5 +---- .../workflows/sentry_opentelemetry_test.yml | 5 +---- .github/workflows/sentry_rails_test.yml | 5 +---- .github/workflows/sentry_resque_test.yml | 5 +---- .github/workflows/sentry_ruby_test.yml | 5 +---- .github/workflows/sentry_sidekiq_test.yml | 5 +---- codecov.yml | 22 +++++++++++++++++++ 7 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.github/workflows/sentry_delayed_job_test.yml b/.github/workflows/sentry_delayed_job_test.yml index 284112550..1e12f4344 100644 --- a/.github/workflows/sentry_delayed_job_test.yml +++ b/.github/workflows/sentry_delayed_job_test.yml @@ -50,7 +50,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/.github/workflows/sentry_opentelemetry_test.yml b/.github/workflows/sentry_opentelemetry_test.yml index 888d4d951..dc4d2b2b2 100644 --- a/.github/workflows/sentry_opentelemetry_test.yml +++ b/.github/workflows/sentry_opentelemetry_test.yml @@ -45,7 +45,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/.github/workflows/sentry_rails_test.yml b/.github/workflows/sentry_rails_test.yml index 75f21fbe1..e070c15ba 100644 --- a/.github/workflows/sentry_rails_test.yml +++ b/.github/workflows/sentry_rails_test.yml @@ -85,7 +85,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/.github/workflows/sentry_resque_test.yml b/.github/workflows/sentry_resque_test.yml index aacd233b5..c464e9dc9 100644 --- a/.github/workflows/sentry_resque_test.yml +++ b/.github/workflows/sentry_resque_test.yml @@ -48,7 +48,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/.github/workflows/sentry_ruby_test.yml b/.github/workflows/sentry_ruby_test.yml index bcb7144b2..a3147c8a5 100644 --- a/.github/workflows/sentry_ruby_test.yml +++ b/.github/workflows/sentry_ruby_test.yml @@ -80,7 +80,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/.github/workflows/sentry_sidekiq_test.yml b/.github/workflows/sentry_sidekiq_test.yml index ae243b021..195978c08 100644 --- a/.github/workflows/sentry_sidekiq_test.yml +++ b/.github/workflows/sentry_sidekiq_test.yml @@ -59,7 +59,4 @@ jobs: - name: Upload Coverage if: ${{ matrix.options.codecov }} - run: | - curl -Os https://uploader.codecov.io/latest/linux/codecov - chmod +x codecov - ./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml + uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d diff --git a/codecov.yml b/codecov.yml index 06da66193..3dd8085c8 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,3 +2,25 @@ codecov: disable_default_path_fixes: true ignore: - "**/spec" +comment: + layout: "header, diff, flags, components, tree" +component_management: + individual_components: + - component_id: "sentry-ruby" + paths: + - "sentry-ruby/" + - component_id: "sentry-rails" + paths: + - "sentry-rails/" + - component_id: "sentry-sidekiq" + paths: + - "sentry-sidekiq/" + - component_id: "sentry-resque" + paths: + - "sentry-resque/" + - component_id: "sentry-delayed_job" + paths: + - "sentry-delayed_job/" + - component_id: "sentry-opentelemetry" + paths: + - "sentry-opentelemetry/"