Skip to content

Only load coveralls for ruby > 2.4 #39

Only load coveralls for ruby > 2.4

Only load coveralls for ruby > 2.4 #39

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1"]
bundler: [default]
gemfile:
- rails6.0
- rails6.1
- rails7.0
- stripe5
- stripe6
- stripe7
- stripe8
include:
- { ruby: "2.3", gemfile: "rails3.2", bundler: "1" }
- { ruby: "2.3", gemfile: "rails4.2", bundler: "1" }
- { ruby: "2.4", gemfile: "rails4.2", bundler: "1" }
- { ruby: "2.5", gemfile: "rails5.1", bundler: "default" }
- { ruby: "2.5", gemfile: "rails5.2", bundler: "default" }
- { ruby: "2.6", gemfile: "rails5.2", bundler: "default" }
- { ruby: "2.6", gemfile: "rails6.0", bundler: "default" }
- { ruby: "2.6", gemfile: "rails6.1", bundler: "default" }
- { ruby: "2.5", gemfile: "stripe3", bundler: "default" }
- { ruby: "2.6", gemfile: "stripe3", bundler: "default" }
- { ruby: "2.7", gemfile: "stripe3", bundler: "default" }
- { ruby: "2.5", gemfile: "stripe4", bundler: "default" }
- { ruby: "2.6", gemfile: "stripe4", bundler: "default" }
- { ruby: "2.7", gemfile: "stripe4", bundler: "default" }
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ matrix.bundler }}
bundler-cache: true # runs `bundle install` and caches gems automatically
- name: Run tests
run: bundle exec rake