Skip to content

Commit

Permalink
Update Github Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmorrison committed Jul 4, 2024
1 parent d5d976f commit cca0312
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:

- rails: "7.1"
ruby: "3.1"
- rails: "7.1b"
ruby: "3.1"
- rails: "7.1.1"
ruby: "3.2"
- rails: "7.1"
Expand Down
2 changes: 1 addition & 1 deletion rails_semantic_logger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = ">= 2.5"
s.add_dependency "rack"
s.add_dependency "railties", ">= 5.1"
s.add_dependency "semantic_logger", "~> 4.13"
s.add_dependency "semantic_logger", "~> 4.16"
s.metadata = {
"bug_tracker_uri" => "https://github.com/reidmorrison/rails_semantic_logger/issues",
"documentation_uri" => "https://logger.rocketjob.io",
Expand Down
11 changes: 6 additions & 5 deletions test/sidekiq_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class SidekiqTest < Minitest::Test
name: "BadJob",
message: "Start #perform",
metric: "sidekiq.queue.latency",
named_tags: {jid: nil, queue: "default"}
named_tags: {jid: nil, queue: "default"},
exception: :nil
)
assert messages[0].metric_amount.is_a?(Float)

Expand All @@ -101,8 +102,8 @@ class SidekiqTest < Minitest::Test
name: "BadJob",
message: "Completed #perform",
metric: "sidekiq.job.perform",
named_tags: {jid: nil, queue: "default"}
# exception: { name: "ArgumentError", message: "This is a bad job" }
named_tags: {jid: nil, queue: "default"},
exception: ArgumentError
)
assert messages[1].duration.is_a?(Float)

Expand All @@ -111,8 +112,8 @@ class SidekiqTest < Minitest::Test
level: :warn,
name: "BadJob",
message: "Job raised exception",
payload_includes: {context: "Job raised exception"}
# exception: { name: "ArgumentError", message: "This is a bad job" }
payload_includes: {context: "Job raised exception"},
exception: :nil
)
assert_equal messages[2].payload[:job]["class"], "BadJob"
assert_equal messages[2].payload[:job]["args"], []
Expand Down

0 comments on commit cca0312

Please sign in to comment.