Skip to content

Commit

Permalink
Introduce codacy integration for additional test coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
amkisko committed Aug 27, 2024
1 parent 745c8b8 commit d60ff08
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.7', '3.0', '3.1', '3.2', jruby, truffleruby ]
ruby: [ '2.7', '3.0', '3.1', '3.2', '3.3', jruby, truffleruby ]
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec --format p --pattern "spec/**/*_spec.rb"
- run: bundle exec rspec --format p

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.3
bundler-cache: true
- run: bundle exec rspec --format p --require support/simplecov --pattern "spec/**/*_spec.rb"
- run: bundle exec rspec --format p --require support/simplecov
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: "coverage/coverage.xml"

0 comments on commit d60ff08

Please sign in to comment.