Merge pull request #600 from cesariouy/patch-1 #990
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: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [3.0, 3.1, 3.2] | |
appraisal: ["rails-6.0", "rails-6.1", "rails-7.0", "rails-head"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: false | |
- name: Set system gem command | |
run: gem update --system | |
- name: Install bundler | |
run: gem install bundler | |
- name: Bundle for Appraisal | |
run: bundle | |
- name: Install Appraisal dependencies | |
run: bundle exec appraisal ${{ matrix.appraisal }} bundle | |
- name: Run tests | |
run: bundle exec appraisal ${{ matrix.appraisal }} rspec |