Skip to content

add ruby 3.1 and 3.2 support, drop ruby 2.6 #127

add ruby 3.1 and 3.2 support, drop ruby 2.6

add ruby 3.1 and 3.2 support, drop ruby 2.6 #127

Workflow file for this run

name: repo-checks
on:
pull_request:
push:
branches:
- master
- main
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
steps:
- uses: zendesk/checkout@v3
- uses: zendesk/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: test
run: bundle exec rake
linter:
runs-on: ubuntu-latest
steps:
- uses: zendesk/checkout@v3
- uses: zendesk/setup-ruby@v1
with:
bundler-cache: true
- name: lint
run: bundle exec rubocop
tests_successful:
name: Tests passing?
needs: tests
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if ${{ needs.tests.result == 'success' }}
then
echo "All tests pass"
else
echo "Some tests failed"
false
fi