Add tests on Ruby 3.3 #19
Workflow file for this run
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: repo-checks | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
main: | |
name: test | |
runs-on: ubuntu-latest | |
env: | |
RAILS_ENV: test | |
BUNDLE_GEMFILE: gems.rb | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- "2.7" | |
- "3.0" | |
- "3.1" | |
- "3.2" | |
- "3.3" | |
- jruby-9.4 | |
- jruby-head | |
steps: | |
- uses: zendesk/checkout@v2 | |
- uses: zendesk/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: gem_cache | |
id: cache | |
uses: zendesk/cache@v2 | |
with: | |
path: vendor/bundle | |
key: cache-${{ runner.os }}-ruby-${{ matrix.ruby }}-${{ hashFiles('Gemfile.lock') }} | |
- name: install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --without benchmark development | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
- name: rake ${{ matrix.ruby }} | |
run: | | |
bundle exec rake |