Repository navigation
135 lines (129 loc) · 4.03 KB
/
Copy pathci.yml
File metadata and controls
135 lines (129 loc) · 4.03 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request
cancel-in-progress: true # Cancel any previous runs of this workflow
jobs:
base:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
strategy:
fail-fast: false
matrix:
gem:
- opentelemetry-api
- opentelemetry-common
- opentelemetry-exporter-zipkin
- opentelemetry-logs-api
- opentelemetry-logs-sdk
- opentelemetry-metrics-api
- opentelemetry-metrics-sdk
- opentelemetry-propagator-b3
- opentelemetry-propagator-jaeger
- opentelemetry-registry
- opentelemetry-sdk
- opentelemetry-sdk-experimental
- opentelemetry-semantic_conventions
- opentelemetry-test-helpers
os:
- ubuntu-24.04
- macos-26
- windows-2025
name: ${{ matrix.gem }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: "Test Ruby 3.4"
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "3.4"
- name: "Test Ruby 3.3"
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "3.3"
yard: true
rubocop: true
build: true
- name: "Test JRuby"
if: startsWith(matrix.os, 'ubuntu')
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "jruby"
- name: "Test truffleruby"
if: startsWith(matrix.os, 'ubuntu')
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "truffleruby"
exporters:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
strategy:
fail-fast: false
matrix:
gem:
- opentelemetry-exporter-otlp
- opentelemetry-exporter-otlp-common
- opentelemetry-exporter-otlp-grpc
- opentelemetry-exporter-otlp-http
- opentelemetry-exporter-otlp-logs
- opentelemetry-exporter-otlp-metrics
os:
- ubuntu-24.04
- macos-26
- windows-2025
exclude:
# Windows runs Ruby 3.4, which isn't compatible with this gem
- os: windows-2025
gem: opentelemetry-exporter-otlp-grpc
name: ${{ matrix.gem }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: "Test Ruby 3.4"
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "3.4"
- name: "Test Ruby 3.3"
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "3.3"
yard: true
rubocop: true
build: true
- name: "Test truffleruby"
if: "${{ startsWith(matrix.os, 'ubuntu') && matrix.gem != 'opentelemetry-exporter-otlp-grpc' }}"
uses: ./.github/actions/test_gem
with:
gem: "${{ matrix.gem }}"
ruby: "truffleruby"
spelling-check:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
name: Spelling Check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: streetsidesoftware/cspell-action@6f3c77c1406bc930f944ba97e9801a22e42caf58 # v9.1.0
with:
use_cspell_files: true
config: .cspell.yml
suggestions: true
treat_flagged_words_as_errors: true