Skip to content

Commit

Permalink
Update rubyonrails.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mundra-ankur committed Oct 15, 2022
1 parent c2ec2bc commit cb92d86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,21 @@ jobs:
env:
DB_PORT: 3306
RAILS_ENV: test
- name: Format code coverage
run: ./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.${{ matrix.folder }}.json"
# - name: Test & publish code coverage
# uses: paambaati/codeclimate-action@v3.1.0
# env:
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# with:
# coverageCommand: bundle exec rspec spec/${{ matrix.folder }}
# debug: true
code-climate-report:
runs-on: ubuntu-latest
steps:
- name: Publish code coverage
run: |
export GIT_BRANCH="${GITHUB_REF/refs\/heads\//}"
./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.${{ matrix.folder }}.json"
./cc-test-reporter sum-coverage coverage/codeclimate.*.json
ls -lah coverage/
./cc-test-reporter after-build -r ${{secrets.CC_TEST_REPORTER_ID}}

0 comments on commit cb92d86

Please sign in to comment.