From 0b8212b857398bcb9f17bed1387abc40bc38baf7 Mon Sep 17 00:00:00 2001 From: Hundter Biede <6586509+hbiede@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:29:12 -0600 Subject: [PATCH] Update codecov CI --- .github/workflows/main.yaml | 4 +++- tests/helper.rb | 7 +------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index df2d2aa..02b3668 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -33,6 +33,8 @@ jobs: run: bundle exec rake shell: bash - name: Upload Test Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: directory: ./coverage + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/tests/helper.rb b/tests/helper.rb index f01470c..207fb11 100644 --- a/tests/helper.rb +++ b/tests/helper.rb @@ -24,9 +24,4 @@ def disable_stderr Test::Unit::AutoRunner.run(true, File.dirname(__FILE__)) end -if ENV['CI'] == 'true' - require 'codecov' - SimpleCov.formatter = SimpleCov::Formatter::Codecov -else - SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter -end +SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter