Skip to content

Add Rails 7.1 to test matrix #122

Add Rails 7.1 to test matrix

Add Rails 7.1 to test matrix #122

Workflow file for this run

name: CI
on:
push:
branches: master
pull_request:
branches: "*"
jobs:
tests:
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.0", "3.1", "3.2"]
rails: ["6.1", "7.0", "7.1"]
continue-on-error: [false]
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_USER: postgres
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
rubygems: latest
- name: Setup environment
run: bin/setup
- name: Run tests
run: bundle exec rake