Skip to content

enable codacy coverage #36

enable codacy coverage

enable codacy coverage #36

Workflow file for this run

name: CI
on:
- push
- pull_request
jobs:
rspec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
env:
BUNDLE_WITH: 'development_common development_test'
BUNDLE_WITHOUT: 'development_lint development_local'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSec
run: bundle exec rake coverage
- name: Upload coverage report
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./coverage/coverage.xml
language: ruby