Skip to content

Add support for Rails 7.1 and Ruby 3.3 and 3.2 #19

Add support for Rails 7.1 and Ruby 3.3 and 3.2

Add support for Rails 7.1 and Ruby 3.3 and 3.2 #19

Workflow file for this run

name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
LANGUAGE: nb
PGUSER: postgres
PGPASSWORD: password
RAILS_ENV: test
jobs:
Rubocop:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Rubocop
run: bundle exec rubocop --auto-correct-all
Test:
runs-on: ubuntu-20.04
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
ruby: [ 3.3, 3.2, 3.1, jruby, truffleruby ]
gemfile: [ '7.1', '7.0', '6.1' ]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Rake test
run: bundle exec rake test