Skip to content

Commit 5bd69ee

Browse files
committed
use custom ci for auto-instrumentation
1 parent 501918b commit 5bd69ee

File tree

1 file changed

+65
-30
lines changed

1 file changed

+65
-30
lines changed

.github/workflows/ci-contrib.yml

Lines changed: 65 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -242,43 +242,78 @@ jobs:
242242
ruby: "jruby-9.4.12.0"
243243

244244
auto-instrumentation:
245-
strategy:
246-
fail-fast: false
247-
matrix:
248-
gem:
249-
- opentelemetry-auto-instrumentation
250-
os:
251-
- ubuntu-latest
252-
name: "${{ matrix.gem }} / ${{ matrix.os }}"
253-
runs-on: ${{ matrix.os }}
245+
name: "auto-instrumentation / ubuntu-latest"
246+
runs-on: ubuntu-latest
254247
steps:
255248
- uses: actions/checkout@v4
256249
- name: "Test Ruby 3.4"
257-
uses: ./.github/actions/test_gem
250+
uses: ruby/[email protected]
258251
with:
259-
gem: "${{ matrix.gem }}"
260-
ruby: "3.4"
252+
ruby-version: "3.4"
253+
- name: Test Gem
254+
shell: bash
255+
run: |
256+
bundle install --quiet --jobs=3 --retry=4
257+
bundle exec rake test
258+
rm -f Gemfile.lock
259+
working-directory: './opentelemetry-auto-instrumentation'
261260
- name: "Test Ruby 3.3"
262-
uses: ./.github/actions/test_gem
261+
uses: ruby/[email protected]
263262
with:
264-
gem: "${{ matrix.gem }}"
265-
ruby: "3.3"
263+
ruby-version: "3.3"
264+
- name: Test Gem
265+
shell: bash
266+
run: |
267+
bundle install --quiet --jobs=3 --retry=4
268+
bundle exec rake test
269+
rm -f Gemfile.lock
270+
working-directory: './opentelemetry-auto-instrumentation'
266271
- name: "Test Ruby 3.2"
267-
uses: ./.github/actions/test_gem
272+
uses: ruby/[email protected]
268273
with:
269-
gem: "${{ matrix.gem }}"
270-
ruby: "3.2"
274+
ruby-version: "3.2"
275+
- name: Test Gem
276+
shell: bash
277+
run: |
278+
bundle install --quiet --jobs=3 --retry=4
279+
bundle exec rake test
280+
rm -f Gemfile.lock
281+
working-directory: './opentelemetry-auto-instrumentation'
271282
- name: "Test Ruby 3.1"
272-
uses: ./.github/actions/test_gem
283+
uses: ruby/[email protected]
273284
with:
274-
gem: "${{ matrix.gem }}"
275-
ruby: "3.1"
276-
yard: true
277-
rubocop: true
278-
build: true
279-
- name: "Test JRuby"
280-
if: "${{ matrix.os == 'ubuntu-latest' }}"
281-
uses: ./.github/actions/test_gem
282-
with:
283-
gem: "${{ matrix.gem }}"
284-
ruby: "jruby-9.4.12.0"
285+
ruby-version: "3.1"
286+
- name: Test Gem
287+
shell: bash
288+
run: |
289+
bundle install --quiet --jobs=3 --retry=4
290+
bundle exec rake test
291+
rm -f Gemfile.lock
292+
working-directory: './opentelemetry-auto-instrumentation'
293+
294+
- name: YARD
295+
shell: bash
296+
run: |
297+
# 📄 Yard Docs 📄
298+
bundle exec rake yard
299+
working-directory: './opentelemetry-auto-instrumentation'
300+
301+
- name: Rubocop
302+
shell: bash
303+
run: |
304+
# 🤖 Rubocop 🤖
305+
bundle exec rake rubocop
306+
working-directory: './opentelemetry-auto-instrumentation'
307+
308+
- name: Coverage
309+
shell: bash
310+
run: |
311+
bundle exec ruby -e 'require "simplecov"; SimpleCov.minimum_coverage(85)'
312+
working-directory: './opentelemetry-auto-instrumentation'
313+
314+
- name: Build Gem
315+
shell: bash
316+
run: |
317+
# 📦 Build Gem 📦
318+
gem build opentelemetry-auto-instrumentation.gemspec
319+
working-directory: './opentelemetry-auto-instrumentation'

0 commit comments

Comments
 (0)