Skip to content

Commit

Permalink
Switch from CodeClimate to CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo committed Jan 31, 2025
1 parent 79d9a26 commit 13c36a9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
orbs:
ruby-rails: sul-dlss/ruby-rails@4.3.0
ruby-rails: sul-dlss/ruby-rails@4.4.0
workflows:
build:
jobs:
Expand All @@ -13,6 +13,7 @@ workflows:
name: test
api-only: true
context: dlss
use-codecov: true
- ruby-rails/docker-publish:
context: dlss
name: publish-latest
Expand Down
4 changes: 4 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment: false
coverage:
status:
project: true
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![CircleCI](https://circleci.com/gh/sul-dlss/dor-services-app.svg?style=svg)](https://circleci.com/gh/sul-dlss/dor-services-app)
[![Maintainability](https://api.codeclimate.com/v1/badges/955223f2386ae5f10e33/maintainability)](https://codeclimate.com/github/sul-dlss/dor-services-app/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/955223f2386ae5f10e33/test_coverage)](https://codeclimate.com/github/sul-dlss/dor-services-app/test_coverage)
[![codecov](https://codecov.io/github/sul-dlss/dor-services-app/graph/badge.svg?token=MCMiin7aeE)](https://codecov.io/github/sul-dlss/dor-services-app)
[![GitHub version](https://badge.fury.io/gh/sul-dlss%2Fdor-services-app.svg)](https://badge.fury.io/gh/sul-dlss%2Fdor-services-app)
[![OpenAPI Validator](https://validator.swagger.io/validator?url=https://raw.githubusercontent.com/sul-dlss/dor-services-app/main/openapi.yml)](http://validator.swagger.io/validator/debug?url=https://raw.githubusercontent.com/sul-dlss/dor-services-app/main/openapi.yml)

Expand Down Expand Up @@ -244,4 +243,3 @@ Additional notes:
### Steps

1. [Reset the database](https://github.com/sul-dlss/DeveloperPlaybook/blob/main/best-practices/db_reset.md)

6 changes: 6 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
add_filter '/bin/'
add_filter '/app/reports/'
add_filter '/db/'

if ENV['CI']
require 'simplecov_json_formatter'

formatter SimpleCov::Formatter::JSONFormatter
end
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
Expand Down

0 comments on commit 13c36a9

Please sign in to comment.