Fix exception event sending failed #403
Workflow file for this run
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: sentry-opentelemetry 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: | |
test: | |
defaults: | |
run: | |
working-directory: sentry-opentelemetry | |
name: Ruby ${{ matrix.ruby_version }} & OpenTelemetry ${{ matrix.opentelemetry_version }}, options - ${{ toJson(matrix.options) }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
ruby_version: [2.6, 2.7, '3.0', '3.1', '3.2', jruby] | |
# opentelemetry_version: [1.2.0] | |
os: [ubuntu-latest] | |
include: | |
- { os: ubuntu-latest, ruby_version: 3.2, options: { rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal" } } | |
- { os: ubuntu-latest, ruby_version: 3.2, options: { codecov: 1 } } | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby ${{ matrix.ruby_version }} | |
uses: ruby/setup-ruby@8ddb7b3348b3951590db24c346e94ebafdabc926 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
- name: Run specs | |
env: | |
RUBYOPT: ${{ matrix.options.rubyopt }} | |
OPENTELEMETRY_VERSION: ${{ matrix.opentelemetry_version }} | |
run: | | |
bundle install --jobs 4 --retry 3 | |
bundle exec rake | |
- name: Upload Coverage | |
if: ${{ matrix.options.codecov }} | |
run: | | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml |