fix: Mark the reporter thread as "fork safe" to avoid warnings (#215) #103
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: judoscale-sidekiq benchmarks | |
defaults: | |
run: | |
working-directory: judoscale-sidekiq | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
benchmarks: | |
strategy: | |
fail-fast: false | |
matrix: | |
gemfile: | |
- Gemfile | |
- Gemfile-sidekiq-5 | |
ruby: | |
- "2.7" | |
- "3.1" | |
- "3.3" | |
redis: | |
- "5.0" | |
- "6.0" | |
- "7.0" | |
exclude: | |
# Recent redis-client requires Redis 6+ | |
- gemfile: Gemfile | |
redis: "5.0" | |
runs-on: ubuntu-latest | |
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | |
BUNDLE_GEMFILE: ${{ github.workspace }}/judoscale-sidekiq/${{ matrix.gemfile }} | |
services: | |
redis: | |
image: redis:${{ matrix.redis }} | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs bundle install and caches installed gems automatically | |
- run: bundle exec rake bench |