Skip to content

add Utils::Configuration.service_name_provided_by_user? global function #52

add Utils::Configuration.service_name_provided_by_user? global function

add Utils::Configuration.service_name_provided_by_user? global function #52

Workflow file for this run

# Please do NOT manually edit this file.
# This file is generated by 'bundle exec rake github:actions:test_template'
---
name: Unit Tests
'on':
- push
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ github.ref != 'refs/heads/master' }}"
jobs:
compute_tasks:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
engine:
- name: ruby
version: '3.4'
alias: ruby-34
- name: ruby
version: '3.3'
alias: ruby-33
- name: ruby
version: '3.2'
alias: ruby-32
- name: ruby
version: '3.1'
alias: ruby-31
- name: ruby
version: '3.0'
alias: ruby-30
- name: ruby
version: '2.7'
alias: ruby-27
- name: jruby
version: '9.4'
alias: jruby-94
container:
image: ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}
outputs:
ruby-34-matrix: "${{ steps.set-matrix.outputs.ruby-34 }}"
ruby-33-matrix: "${{ steps.set-matrix.outputs.ruby-33 }}"
ruby-32-matrix: "${{ steps.set-matrix.outputs.ruby-32 }}"
ruby-31-matrix: "${{ steps.set-matrix.outputs.ruby-31 }}"
ruby-30-matrix: "${{ steps.set-matrix.outputs.ruby-30 }}"
ruby-27-matrix: "${{ steps.set-matrix.outputs.ruby-27 }}"
jruby-94-matrix: "${{ steps.set-matrix.outputs.jruby-94 }}"
steps:
- uses: actions/checkout@v4
- run: bundle install
- id: set-matrix
run: |
matrix_json=$(bundle exec rake github:generate_matrix)
# Debug output
echo "Generated JSON:"
echo "$matrix_json"
# Set the output
echo "${{ matrix.engine.alias }}=$(echo "$matrix_json")" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-${{ matrix.engine.alias }}
retention-days: 1
path: 'Gemfile.lock
'
test-ruby-34:
name: 'ruby-3.4: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-34-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.4
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-34
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-33:
name: 'ruby-3.3: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-33-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.3
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-33
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-32:
name: 'ruby-3.2: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-32-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.2
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-32
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-31:
name: 'ruby-3.1: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-31-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.1
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-31
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-30:
name: 'ruby-3.0: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-30-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:3.0
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-30
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-ruby-27:
name: 'ruby-2.7: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.ruby-27-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/ruby:2.7
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-ruby-27
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}
test-jruby-94:
name: 'jruby-9.4: ${{ matrix.task }} (${{ matrix.group }})'
needs:
- compute_tasks
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include: "${{ fromJSON(needs.compute_tasks.outputs.jruby-94-matrix) }}"
container:
image: ghcr.io/datadog/images-rb/engines/jruby:9.4
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/download-artifact@v4
with:
name: bundled-lock-${{ github.run_id }}-jruby-94
- run: bundle install && bundle exec rake compile_ext
- name: Test ${{ matrix.task }} with ${{ matrix.gemfile }}
run: bundle exec rake spec:${{ matrix.task }}