add 3.3 #19
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] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3] | |
steps: | |
- name: Set git to master | |
run: git config --global init.defaultBranch master | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Update system gem for Ruby 2.5, 2.6 | |
run: gem update --system 3.2.3 | |
if: ${{ matrix.ruby <= '2.6' }} | |
- name: Install bundler v2.3.10 for Ruby 3.1 and below | |
run: gem install bundler -v '2.3.10' | |
if: ${{ matrix.ruby <= '3.1' }} | |
- name: Install bundler v2.3.7 for Ruby 3.2 and above | |
run: gem install bundler -v '2.3.7' | |
if: ${{ matrix.ruby >= '3.2' }} | |
- name: Install dependencies | |
run: bundle install | |
- name: Run tests | |
run: bundle exec rspec |