Skip to content

add ruby 3.3 to test matrix #210

add ruby 3.3 to test matrix

add ruby 3.3 to test matrix #210

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: hoardable
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
rails:
- "7.0"
- "7.1"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
RAILS_VERSION: ${{ matrix.rails }}
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
env:
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
POSTGRES_USER: postgres
PGPASSWORD: password
POSTGRES_PASSWORD: password
run: |
bundle exec rake