Skip to content

Ruby 4.0.4 and gem updates #2

Ruby 4.0.4 and gem updates

Ruby 4.0.4 and gem updates #2

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }} / activemodel ${{ matrix.activemodel }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3", "3.4"]
activemodel: ["7.0", "7.1", "7.2", "8.0"]
exclude:
# ActiveModel 8.0 requires Ruby >= 3.2.
- ruby: "3.1"
activemodel: "8.0"
env:
ACTIVEMODEL_VERSION: ${{ matrix.activemodel }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run specs (no network)
run: bundle exec rspec
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Run Standard
run: bundle exec standardrb