Skip to content

Extract modules and extend spec coverage #127

Extract modules and extend spec coverage

Extract modules and extend spec coverage #127

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} - ${{ matrix.appraisal }}
strategy:
fail-fast: false
matrix:
ruby:
- '3.3.0'
- '3.2.2'
- '3.1.4'
appraisal:
- 'railties-7-sidekiq'
- 'railties-6-sidekiq'
- 'railties-7-no-sidekiq'
- 'railties-6-no-sidekiq'
- 'no-railties-no-sidekiq'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Appraisal Gems
run: bundle exec appraisal install
- name: Run the specs for Appraisal
env:
APPRAISAL: ${{ matrix.appraisal }}
RUBY_VERSION: ${{ matrix.ruby }}
run: bundle exec appraisal ${{ matrix.appraisal }} rake spec
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage/${{ matrix.ruby }}-${{ matrix.appraisal }}/coverage.json
token: ${{ secrets.CODECOV_TOKEN }}
- name: List coverage directory
run: ls -R ./coverage