Skip to content

adds testing for ruby 3 and rails 6.1 #202

adds testing for ruby 3 and rails 6.1

adds testing for ruby 3 and rails 6.1 #202

Workflow file for this run

name: Ruby
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
ruby: [3.0.7, 3.1.6, 3.2.5, 3.3.4]
gemfile: [gemfiles/rails70.gemfile, gemfiles/rails61.gemfile, gemfiles/rails60.gemfile] # default Gemfile excluded until rack fix
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Code Climate
run: |
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: Build and Test
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
RUBY_VERSION: ${{ matrix.ruby }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "3.3.4" ] && [ ! -z ${CC_TEST_REPORTER_ID} ] ;
then ./cc-test-reporter after-build --exit-code $? ;
fi