Skip to content

Reset trace and transaction for sidekiq-cron #24

Reset trace and transaction for sidekiq-cron

Reset trace and transaction for sidekiq-cron #24

name: sentry-ruby Test
on:
workflow_dispatch:
push:
branches:
- master
- \d+-\d+
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby-jruby
min_version: 2.4
test:
needs: ruby-versions
defaults:
run:
working-directory: sentry-ruby
name: Ruby ${{ matrix.ruby_version }} & Rack ${{ matrix.rack_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ubuntu-latest
timeout-minutes: 10
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-ruby/Gemfile
BUNDLE_WITHOUT: rubocop
RACK_VERSION: ${{ matrix.rack_version }}
REDIS_RB_VERSION: ${{ matrix.redis_rb_version }}
strategy:
fail-fast: false
matrix:
ruby_version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
rack_version: [2.0, 3.0, 3.1]
redis_rb_version: [4.0]
include:
- { ruby_version: 3.2, rack_version: 0, redis_rb_version: 5.0 }
- { ruby_version: 3.2, rack_version: 2.0, redis_rb_version: 5.0 }
- {
ruby_version: 3.2,
rack_version: 3.0,
redis_rb_version: 5.0,
options:
{
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal",
},
}
- {
ruby_version: 3.2,
rack_version: 3.0
}
- {
ruby_version: 3.3,
rack_version: 3.1,
redis_rb_version: 5.3
}
steps:
- uses: actions/checkout@v1
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Start Redis
uses: supercharge/redis-github-action@c169aa53af4cd5d9321e9114669dbd11be08d307
with:
redis-version: 6
- name: Run specs with Rack ${{ matrix.rack_version }} and redis-rb ${{ matrix.redis_rb_version }}
run: bundle exec rake
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}