Drop support for older rubies, rails and redis #322
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# Controls when the action will run. | |
# Github Actions multiple gemfile support? | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
# need to figure out how to use redis on macos github actions | |
# os: [ubuntu, macos] | |
os: [ubuntu] | |
# remove until I sort out CI issues for truffle | |
# truffleruby, | |
# truffleruby-head, | |
# removing jruby again to flaky | |
gemfile: [ Gemfile.rails7.0, Gemfile.rails7.1, Gemfile.rails7.2, Gemfile.rails8.0 ] | |
# need to add support for multiple gemfiles | |
ruby: ["3.1", "3.2", "3.3"] | |
redis-version: [4, 5, 6, 7] | |
exclude: | |
# Rails 8 requires ruby 3.2+. | |
- gemfile: 'rails_8.0' | |
ruby: '3.1' | |
runs-on: ${{ matrix.os }}-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: bundle exec standardrb | |
- run: bundle exec rake | |
- run: bundle exec rake forked_tests | |
- run: bundle exec rake benchmarks | |
- run: bundle exec rake benchmarks:memory | |
- run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rake" |