Does CI work with appraisal test #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |