Skip to content

[TASK] Use the latest Ruby 3.2.3 in CI #273

[TASK] Use the latest Ruby 3.2.3 in CI

[TASK] Use the latest Ruby 3.2.3 in CI #273

Workflow file for this run

---
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '15 3 * * 1'
jobs:
static-analysis:
name: 'Static analysis'
runs-on: ubuntu-22.04
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.0'
- name: 'Check the environment'
run: |
ruby --version
gem --version
- name: 'Install bundler'
run: |
gem install bundler
bundle --version
- name: 'Install gems'
run: 'bundle install --jobs 4 --retry 3'
- name: 'Run RuboCop'
run: 'bundle exec rake rubocop'
test:
name: "Tests: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby }}'
- name: 'Check the environment'
run: |
ruby --version
gem --version
- name: 'Install bundler'
run: |
gem install bundler
bundle --version
- name: 'Install gems'
env:
MATRIX_RAILS_VERSION: ${{ matrix.rails }}
run: |
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/rails-${MATRIX_RAILS_VERSION}.gemfile"
bundle install --jobs 4 --retry 3
- name: 'Run the tests'
run: 'bundle exec rspec spec/'
strategy:
fail-fast: false
matrix:
include:
- { 'rails': '6.1', 'ruby': '3.0.6' }
- { 'rails': '6.1', 'ruby': '3.1.4' }
- { 'rails': '6.1', 'ruby': '3.2.3' }
- { 'rails': '6.1', 'ruby': '3.3.0' }
- { 'rails': '7.0', 'ruby': '3.0.6' }
- { 'rails': '7.0', 'ruby': '3.1.4' }
- { 'rails': '7.0', 'ruby': '3.2.3' }
- { 'rails': '7.0', 'ruby': '3.3.0' }
- { 'rails': '7.1', 'ruby': '3.0.6' }
- { 'rails': '7.1', 'ruby': '3.1.4' }
- { 'rails': '7.1', 'ruby': '3.2.3' }
- { 'rails': '7.1', 'ruby': '3.3.0' }