Skip to content

Commit

Permalink
Report code coverage to CodeClimate
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Oct 14, 2023
1 parent bccdc38 commit 9c209d7
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,24 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- "2.7"
- "3.0"
# - "2.7"
# - "3.0"
- "3.1"
- "3.2"
rails-version:
- "6.0"
- "6.1"
- "7.0"
# - "6.0"
# - "6.1"
# - "7.0"
- "7.1"
- "7.2"
include:
- ruby-version: "2.7"
rails-version: "5.1"
- ruby-version: "2.7"
rails-version: "5.2"
- ruby-version: "3.2"
rails-version: "7.2"
code-coverage: true
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.rails-version }}.gemfile

Expand All @@ -39,6 +42,17 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run RSpec
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
ENABLE_CODE_COVERAGE: true
run: |
bundle exec rspec
bundle exec rspec --format RspecJunitFormatter --out ${{github.workspace}}/rspec-results.xml --format documentation
- uses: paambaati/codeclimate-action@v5
if: matrix.code-coverage
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/.resultset.json:simplecov

0 comments on commit 9c209d7

Please sign in to comment.