Add Ruby 3.3 and ActiveModel 7.1 to build matrix #28
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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ["2.7", "3.0", "3.1"] | |
gemfile: | |
- activemodel-6.0 | |
- activemodel-6.1 | |
- activemodel-7.0 | |
- activemodel-7.1 | |
# - activemodel-main | |
include: | |
- { ruby: "2.3", gemfile: "activemodel-3.2" } | |
- { ruby: "2.4", gemfile: "activemodel-4.2" } | |
- { ruby: "2.5", gemfile: "activemodel-5.2" } | |
- { ruby: "2.6", gemfile: "activemodel-6.1" } | |
- { ruby: "3.2", gemfile: "activemodel-7.0" } | |
- { ruby: "3.3", gemfile: "activemodel-7.1" } | |
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-cache: true # runs `bundle install` and caches gems automatically | |
- name: Run tests | |
run: bundle exec rake |