Skip to content

fix Ruby 3.2 by adjusting the spec for Datadog Tracer #42

fix Ruby 3.2 by adjusting the spec for Datadog Tracer

fix Ruby 3.2 by adjusting the spec for Datadog Tracer #42

Workflow file for this run

name: CI
on: [pull_request]
jobs:
rubocop:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop
rspec:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0.6', '3.1', '3.2']
runs-on: ubuntu-latest
env:
DD_PROFILING_NO_EXTENSION: true
RAILS_ENV: test
RACK_ENV: test
REDIS_URL: redis://localhost:6379/1
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dionysus-rb-test
CLUSTER_ID: kafka-docker-cluster-1
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://127.0.0.1:9092
KAFKA_BROKER_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: [email protected]:9093
ALLOW_PLAINTEXT_LISTENER: 'yes'
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "true"
KAFKA_AUTHORIZER_CLASS_NAME: org.apache.kafka.metadata.authorizer.StandardAuthorizer
KAFKA_CREATE_TOPICS: "v102_rentals:1:1"
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dionysus-rb-test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Start Kafka with docker-compose
run: |
docker-compose up -d || (sleep 5 && docker-compose up -d)
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec