Skip to content

Commit

Permalink
Fix tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sulami committed Jan 10, 2024
1 parent 69311a0 commit 2974e3d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 26 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@ name: Ruby

on:
push:
branches:
- main

pull_request:

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.0.5'
name: Build and test

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
ruby-version: 3.2
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.2

Style/StringLiterals:
Enabled: true
Expand Down
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@ source "https://rubygems.org"

# Specify your gem's dependencies in degica_datadog.gemspec
gemspec

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "rubocop", "~> 1.21"
15 changes: 10 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
coderay (1.1.3)
datadog-ci (0.5.1)
msgpack
ddtrace (1.18.0)
Expand All @@ -24,16 +25,19 @@ GEM
json (2.7.1)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0)
libddwaf (1.14.0.0.0-arm64-darwin)
libddwaf (1.14.0.0.0)
ffi (~> 1.0)
method_source (1.0.0)
msgpack (1.7.2)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
regexp_parser (2.8.3)
rexml (3.2.6)
rspec (3.12.0)
Expand Down Expand Up @@ -66,13 +70,14 @@ GEM
unicode-display_width (2.5.0)

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
bundler (~> 2.0)
degica_datadog!
rake (~> 13.0)
pry
rspec (~> 3.0)
rubocop (~> 1.21)
rubocop

BUNDLED WITH
2.2.33
6 changes: 5 additions & 1 deletion degica_datadog.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|

spec.summary = "Datadog statsd & tracing utitlities for Degica services"
spec.homepage = "https://github.com/degica/degica_datadog"
spec.required_ruby_version = ">= 2.6.0"
spec.required_ruby_version = ">= 3.0.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand All @@ -26,4 +26,8 @@ Gem::Specification.new do |spec|

spec.add_dependency "ddtrace", "~> 1.0"
spec.add_dependency "dogstatsd-ruby", "~> 5"
spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rubocop"
spec.add_development_dependency "pry"
end

0 comments on commit 2974e3d

Please sign in to comment.