Skip to content

Merge pull request #16 from zendesk/ruby_33 #15

Merge pull request #16 from zendesk/ruby_33

Merge pull request #16 from zendesk/ruby_33 #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
specs:
runs-on: ubuntu-latest
services:
redis:
image: redis:7
ports:
- 6379:6379
env:
RAILS_ENV: test
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
gemfile:
- 'resque_1'
- 'resque_2'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: test ${{ matrix.ruby-version }} with ${{ matrix.gemfile }}
run: bundle exec rake spec
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: linter
run: bundle exec rake rubocop
specs_successful:
name: Specs passing?
needs: specs
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if ${{ needs.specs.result == 'success' }}
then
echo "All specs pass"
else
echo "Some specs failed"
false
fi