Skip to content

Commit

Permalink
codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
tapan-sh committed Jan 17, 2025
1 parent 20a8432 commit 6ff3fd1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
40 changes: 32 additions & 8 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,36 @@ jobs:
- name: Run tests
run: bundle exec rspec

- name: Code Coverage
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: 'Upload Coverage Report'
uses: actions/upload-artifact@v4
with:
debug: true
coverageCommand: bundle exec rspec
coverageLocations: |
${{github.workspace}}/coverage/.resultset.json:simplecov
name: coverage-report
path: ./coverage

# - name: Code Coverage
# uses: paambaati/codeclimate-action@v2.7.5
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# debug: true
# coverageCommand: bundle exec rspec
# coverageLocations: |
# ${{github.workspace}}/coverage/.resultset.json:simplecov

coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Coverage Report
uses: actions/download-artifact@v4
with:
name: coverage-report
path: ./coverage
- uses: paambaati/codeclimate-action@v9.0.0
env:
# Set CC_TEST_REPORTER_ID as secret of your repo
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
debug: true
2 changes: 1 addition & 1 deletion class_kit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'simplecov', '< 0.18.0'
spec.add_development_dependency 'simplecov', '< 0.22.0'
spec.add_development_dependency 'simplecov_json_formatter'

spec.add_dependency 'hash_kit'
Expand Down

0 comments on commit 6ff3fd1

Please sign in to comment.