Skip to content

Commit cb5410e

Browse files
committed
squash: rename a few files to keep required builds
1 parent 3d029c5 commit cb5410e

File tree

5 files changed

+215
-242
lines changed

5 files changed

+215
-242
lines changed

.github/workflows/ci-instrumentation-all.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
name: CI Instrumentation Full
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- 'instrumentation/action_mailer/**'
10+
- 'instrumentation/action_pack/**'
11+
- 'instrumentation/action_view/**'
12+
- 'instrumentation/active_job/**'
13+
- 'instrumentation/active_model_serializers/**'
14+
- 'instrumentation/active_record/**'
15+
- 'instrumentation/active_storage/**'
16+
- 'instrumentation/active_support/**'
17+
- 'instrumentation/aws_sdk/**'
18+
- 'instrumentation/aws_lambda/**'
19+
- 'instrumentation/base/**'
20+
- 'instrumentation/concurrent_ruby/**'
21+
- 'instrumentation/delayed_job/**'
22+
- 'instrumentation/ethon/**'
23+
- 'instrumentation/excon/**'
24+
- 'instrumentation/faraday/**'
25+
- 'instrumentation/grape/**'
26+
- 'instrumentation/graphql/**'
27+
- 'instrumentation/grpc/**'
28+
- 'instrumentation/gruf/**'
29+
- 'instrumentation/http/**'
30+
- 'instrumentation/http_client/**'
31+
- 'instrumentation/httpx/**'
32+
- 'instrumentation/koala/**'
33+
- 'instrumentation/lmdb/**'
34+
- 'instrumentation/logger/**'
35+
- 'instrumentation/net_http/**'
36+
- 'instrumentation/rack/**'
37+
- 'instrumentation/rails/**'
38+
- 'instrumentation/restclient/**'
39+
- 'instrumentation/rspec/**'
40+
- 'instrumentation/sinatra/**'
41+
- 'helpers/**'
42+
- '.github/workflows/ci-instrumentation.yml'
43+
- '.github/actions/**'
44+
- 'Gemfile'
45+
- 'Rakefile'
46+
- '.rubocop.yml'
47+
- 'gemspecs/**'
48+
pull_request:
49+
branches:
50+
- main
51+
paths:
52+
- 'instrumentation/action_mailer/**'
53+
- 'instrumentation/action_pack/**'
54+
- 'instrumentation/action_view/**'
55+
- 'instrumentation/active_job/**'
56+
- 'instrumentation/active_model_serializers/**'
57+
- 'instrumentation/active_record/**'
58+
- 'instrumentation/active_storage/**'
59+
- 'instrumentation/active_support/**'
60+
- 'instrumentation/aws_sdk/**'
61+
- 'instrumentation/aws_lambda/**'
62+
- 'instrumentation/base/**'
63+
- 'instrumentation/concurrent_ruby/**'
64+
- 'instrumentation/delayed_job/**'
65+
- 'instrumentation/ethon/**'
66+
- 'instrumentation/excon/**'
67+
- 'instrumentation/faraday/**'
68+
- 'instrumentation/grape/**'
69+
- 'instrumentation/graphql/**'
70+
- 'instrumentation/grpc/**'
71+
- 'instrumentation/gruf/**'
72+
- 'instrumentation/http/**'
73+
- 'instrumentation/http_client/**'
74+
- 'instrumentation/httpx/**'
75+
- 'instrumentation/koala/**'
76+
- 'instrumentation/lmdb/**'
77+
- 'instrumentation/logger/**'
78+
- 'instrumentation/net_http/**'
79+
- 'instrumentation/rack/**'
80+
- 'instrumentation/rails/**'
81+
- 'instrumentation/restclient/**'
82+
- 'instrumentation/rspec/**'
83+
- 'instrumentation/sinatra/**'
84+
- 'helpers/**'
85+
- '.github/workflows/ci-instrumentation-full.yml'
86+
- '.github/actions/**'
87+
- 'Gemfile'
88+
- 'Rakefile'
89+
- '.rubocop.yml'
90+
- 'gemspecs/**'
91+
schedule:
92+
- cron: "0 0 * * *"
93+
94+
permissions:
95+
contents: read
96+
97+
concurrency:
98+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} # Ensure that only one instance of this workflow is running per Pull Request
99+
cancel-in-progress: true # Cancel any previous runs of this workflow
100+
101+
jobs:
102+
instrumentation:
103+
strategy:
104+
fail-fast: false
105+
matrix:
106+
gem:
107+
- action_mailer
108+
- action_pack
109+
- action_view
110+
- active_job
111+
- active_model_serializers
112+
- active_record
113+
- active_storage
114+
- active_support
115+
- aws_sdk
116+
- aws_lambda
117+
- base
118+
- concurrent_ruby
119+
- delayed_job
120+
- ethon
121+
- excon
122+
- faraday
123+
- grape
124+
- graphql
125+
- grpc
126+
- gruf
127+
- http
128+
- http_client
129+
- httpx
130+
- koala
131+
- lmdb
132+
- logger
133+
- net_http
134+
- rack
135+
- rails
136+
- restclient
137+
- rspec
138+
- sinatra
139+
os:
140+
- ubuntu-latest
141+
142+
name: ${{ matrix.gem }} / ${{ matrix.os }}
143+
runs-on: ${{ matrix.os }}
144+
steps:
145+
- uses: actions/checkout@v5
146+
- name: "Test Ruby 3.4"
147+
uses: ./.github/actions/test_gem
148+
with:
149+
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
150+
ruby: "3.4"
151+
- name: "Test Ruby 3.3"
152+
uses: ./.github/actions/test_gem
153+
with:
154+
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
155+
ruby: "3.3"
156+
- name: "Test Ruby 3.2"
157+
uses: ./.github/actions/test_gem
158+
with:
159+
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
160+
ruby: "3.2"
161+
yard: true
162+
rubocop: true
163+
coverage: true
164+
build: true
165+
- name: "JRuby Filter"
166+
id: jruby_skip
167+
shell: bash
168+
run: |
169+
echo "skip=false" >> $GITHUB_OUTPUT
170+
[[ "${{ matrix.gem }}" == "action_pack" ]] && echo "skip=true" >> $GITHUB_OUTPUT
171+
[[ "${{ matrix.gem }}" == "action_view" ]] && echo "skip=true" >> $GITHUB_OUTPUT
172+
[[ "${{ matrix.gem }}" == "active_model_serializers" ]] && echo "skip=true" >> $GITHUB_OUTPUT
173+
[[ "${{ matrix.gem }}" == "active_record" ]] && echo "skip=true" >> $GITHUB_OUTPUT
174+
[[ "${{ matrix.gem }}" == "active_storage" ]] && echo "skip=true" >> $GITHUB_OUTPUT
175+
[[ "${{ matrix.gem }}" == "active_support" ]] && echo "skip=true" >> $GITHUB_OUTPUT
176+
[[ "${{ matrix.gem }}" == "aws_sdk" ]] && echo "skip=true" >> $GITHUB_OUTPUT
177+
[[ "${{ matrix.gem }}" == "aws_lambda" ]] && echo "skip=true" >> $GITHUB_OUTPUT
178+
[[ "${{ matrix.gem }}" == "delayed_job" ]] && echo "skip=true" >> $GITHUB_OUTPUT
179+
[[ "${{ matrix.gem }}" == "graphql" ]] && echo "skip=true" >> $GITHUB_OUTPUT
180+
[[ "${{ matrix.gem }}" == "http" ]] && echo "skip=true" >> $GITHUB_OUTPUT
181+
[[ "${{ matrix.gem }}" == "http_client" ]] && echo "skip=true" >> $GITHUB_OUTPUT
182+
[[ "${{ matrix.gem }}" == "koala" ]] && echo "skip=true" >> $GITHUB_OUTPUT
183+
[[ "${{ matrix.gem }}" == "lmdb" ]] && echo "skip=true" >> $GITHUB_OUTPUT
184+
[[ "${{ matrix.gem }}" == "rack" ]] && echo "skip=true" >> $GITHUB_OUTPUT
185+
[[ "${{ matrix.gem }}" == "rails" ]] && echo "skip=true" >> $GITHUB_OUTPUT
186+
[[ "${{ matrix.gem }}" == "grpc" ]] && echo "skip=true" >> $GITHUB_OUTPUT
187+
[[ "${{ matrix.gem }}" == "gruf" ]] && echo "skip=true" >> $GITHUB_OUTPUT
188+
# This is essentially a bash script getting evaluated, so we need to return true or the whole job fails.
189+
true
190+
- name: "Test JRuby"
191+
if: "${{ matrix.os == 'ubuntu-latest' && steps.jruby_skip.outputs.skip == 'false' }}"
192+
uses: ./.github/actions/test_gem
193+
with:
194+
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
195+
ruby: "jruby-10.0.2.0"

0 commit comments

Comments
 (0)