Fix error when using Appraisal and install_if (#226) #2
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: Tests | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '3.3' | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
- 'head' | |
- jruby | |
- jruby-head | |
- truffleruby | |
- truffleruby-head | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Update bundler | |
env: | |
RUBY_VERSION: ${{ matrix.ruby }} | |
run: | | |
case ${RUBY_VERSION} in | |
truffleruby|truffleruby-head) | |
gem install bundler -v 2.5.18 | |
;; | |
*) | |
gem update --system | |
;; | |
esac | |
bundle install | |
- name: Run tests | |
run: bin/rspec |