-
-
Notifications
You must be signed in to change notification settings - Fork 512
62 lines (57 loc) · 1.99 KB
/
sentry_opentelemetry_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: sentry-opentelemetry Test
on:
workflow_dispatch:
workflow_call:
outputs:
matrix-result:
description: "Matrix job result"
value: ${{ jobs.test.outputs.matrix-result }}
inputs:
versions:
required: true
type: string
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: sentry-opentelemetry-test-${{ 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: ubuntu-latest
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
BUNDLE_GEMFILE: ${{ github.workspace }}/sentry-opentelemetry/Gemfile
BUNDLE_WITHOUT: rubocop
OPENTELEMETRY_VERSION: ${{ matrix.opentelemetry_version }}
strategy:
fail-fast: false
matrix:
ruby_version: ${{ fromJson(inputs.versions) }}
# opentelemetry_version: [1.2.0]
include:
- ruby_version: 3.2
options:
rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal"
exclude:
- { ruby_version: 'jruby-head' }
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: ${{ ! contains(matrix.ruby_version, 'jruby') }}
# https://github.com/jruby/jruby/issues/8606#issuecomment-2641501008
- name: Bundle Jruby
if: ${{ contains(matrix.ruby_version, 'jruby') }}
run: gem install jar-dependencies && bundle
- name: Run specs
run: bundle exec rake
- name: Upload Coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}