Skip to content

Does CI work with appraisal test #4

Does CI work with appraisal test

Does CI work with appraisal test #4

name: Appraisal CI Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gemfile:
- 6.0
- 6.1
- 7.0
- 7.1
env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
RAILS_ENV: test
steps:
- uses: actions/checkout@v3
- name: "Install Ruby 3.3"
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Install dependencies
run: bundle install
- name: Setup database
run: |
bundle exec appraisal rake db:create
bundle exec appraisal rake db:migrate
- name: "Run appraisal rspec"
run: cd gemfiles && bundle install && bundle exec appraisal && bundle exec appraisal rspec