Skip to content

Add GitHub action for release to RubyGems #25

Add GitHub action for release to RubyGems

Add GitHub action for release to RubyGems #25

Workflow file for this run

name: RSpec
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- gemfile: rails-6.0
ruby: '2.7'
- gemfile: rails-6.1
ruby: '2.7'
- gemfile: rails-6.1
ruby: '3.0'
- gemfile: rails-7.0
ruby: '2.7'
- gemfile: rails-7.0
ruby: '3.0'
- gemfile: rails-7.1
ruby: '3.2'
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Specs
run: bundle exec rake
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true
finish:
needs: test
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true