Refactor: Simplify redirect logic with helper method (#502) #479
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "ruby-head"] | |
sidekiq: ["~> 6", "~> 7"] | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
env: | |
SIDEKIQ_VERSION: "${{ matrix.sidekiq }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true # 'bundle install' and cache gems | |
ruby-version: ${{ matrix.ruby }} | |
- name: Run tests | |
run: bundle exec rake test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |