Skip to content

Commit

Permalink
Replace codeclimate with sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
louman committed Sep 27, 2023
1 parent e580bc8 commit f2a95a3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
run: bundle exec rspec

- name: Publish code coverage
uses: paambaati/codeclimate-action@v4.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
coverageLocations: |
${{github.workspace}}/coverage/coverage.json:simplecov
args: >
-Dsonar.organization=readytech
-Dsonar.projectKey=rdytech_patches
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.sources=lib/
-Dsonar.inclusions=**/*.rb
-Dsonar.tests=specs/
-Dsonar.ruby.coverage.reportPaths=coverage/.resultset.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit f2a95a3

Please sign in to comment.