ci: Add Ruby 3.2/3.3/3.4 for CI #55
Workflow file for this run
This file contains hidden or 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 | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-20.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [1.9, '2.0', 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, 3.4, jruby-9.1, jruby-9.2, jruby-9.3, jruby-9.4] | |
| gemfile: [no-deps, json-latest, json-old, json-pure] | |
| exclude: | |
| - ruby: 1.9 | |
| gemfile: json-latest | |
| - ruby: 1.9 | |
| gemfile: json-pure | |
| - ruby: '3.0' | |
| gemfile: json-old | |
| - ruby: 3.1 | |
| gemfile: json-old | |
| - ruby: 3.2 | |
| gemfile: json-old | |
| - ruby: 3.3 | |
| gemfile: json-old | |
| - ruby: 3.4 | |
| gemfile: json-old | |
| steps: | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - uses: actions/checkout@v2 | |
| - name: Install gems | |
| run: | | |
| bundle install --gemfile=gemfiles/${{ matrix.gemfile }}.gemfile --without docs release benchmark | |
| - name: Unit Tests | |
| run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }}.gemfile bundle exec rake test:unit | |
| - name: Compliance Tests | |
| run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }}.gemfile bundle exec rake test:compliance |