Merge pull request #645 from justindell/main #1094
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: CI | |
on: | |
push: | |
branches: [main, v2] | |
pull_request: | |
branches: ["**"] | |
jobs: | |
test: | |
name: test (${{ matrix.rails_version }}, ${{ matrix.ruby_version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby_version: "3.0" | |
rails_version: "6.1" | |
- ruby_version: "3.1" | |
rails_version: "7.0" | |
- ruby_version: "3.2" | |
rails_version: "7.1" | |
- ruby_version: "3.3" | |
rails_version: "7.2" | |
# - ruby_version: "3.3" | |
# rails_version: "head" | |
env: | |
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails_version }}.gemfile | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby_version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true | |
- name: Set system gem command | |
run: gem update --system | |
- name: Install bundler | |
run: gem install bundler | |
- name: Bundle for Appraisal | |
run: bundle | |
- name: Build and test | |
run: | | |
bundle exec appraisal rails-${{ matrix.rails_version }} bundle | |
bundle exec appraisal rails-${{ matrix.rails_version }} rspec | |
env: | |
RAILS_VERSION: ${{ matrix.rails_version }} | |
RUBY_VERSION: ${{ matrix.ruby_version }} |