Skip to content

feat: add interruption adapter for shoryuken #2575

feat: add interruption adapter for shoryuken

feat: add interruption adapter for shoryuken #2575

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
# Fail fast if a job hangs (e.g. an integration worker that never self-terminates),
# instead of burning the GitHub Actions default 360-minute timeout.
timeout-minutes: 5
name: Ruby ${{ matrix.ruby }} | Rails ${{ matrix.rails }} | Gemfile ${{ matrix.gemfile }}
continue-on-error: ${{ matrix.rails == 'edge' }}
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
fail-fast: false
matrix:
ruby: ["3.1", "3.2", "3.3", "3.4", "4.0"]
rails: ["7.1", "7.2", "8.0", "8.1", "edge"]
gemfile: [rails_gems]
exclude:
- ruby: "3.1"
rails: "8.0"
- ruby: "3.1"
rails: "8.1"
- ruby: "3.1"
rails: "edge"
- ruby: "3.2"
rails: "edge"
include:
- ruby: head
rails: "edge"
gemfile: rails_gems
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
RAILS_VERSION: ${{ matrix.rails }}
steps:
- name: Check out code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start MySQL and create DB
run: |
sudo systemctl start mysql.service
mysql -uroot -h localhost -proot -e "CREATE DATABASE job_iteration_test;"
- name: Ruby tests
run: bundle exec rake test
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Ruby
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
with:
bundler-cache: true
- name: Rubocop
run: bundle exec rubocop
- name: Documentation correctly written
run: bundle exec yardoc --no-output --no-save --no-stats --fail-on-warning