Skip to content

Add support for single and multiple file attachments to Questions #71

Add support for single and multiple file attachments to Questions

Add support for single and multiple file attachments to Questions #71

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# https://rubyonrails.org/category/releases
# https://rubyonrails.org/maintenance
rails:
- 7.0.0
- 7.1.0
- 7.2.0
- 8.0.0
# https://www.ruby-lang.org/en/downloads/
ruby:
- 3.1.6
- 3.2.6
- 3.3.6
exclude:
# rails 8.0.x needs Ruby version >= 3.2
- rails: 8.0.0
ruby: 3.1.6
services:
postgres:
image: postgres:17.1-alpine
ports:
- "5432:5432"
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
env:
RAILS_VERSION: ${{ matrix.rails }}
RUBY_VERSION: ${{ matrix.ruby }}
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up database schema
run: bundle exec rake db:migrate --trace
- name: Run tests
run: bundle exec rspec spec