Skip to content

Update github workflow tests #18

Update github workflow tests

Update github workflow tests #18

Workflow file for this run

name: Ruby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby-version: '3.1'
rails-version: '7.0.0'
- ruby-version: '3.2'
rails-version: '7.1.0'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby-version }}
env:
RAILS_VERSION: ${{ matrix.rails-version }}
- name: Install dependencies
run: bundle install
- name: Create db
run: RAILS_ENV=test bundle exec rake db:create db:migrate --trace
- name: Run tests
run: bundle exec rake