diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 518e71c..9f04955 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,9 @@ jobs: ruby-version: ${{ matrix.rubyVersion }} - name: Install bundle - run: bundle install + run: | + bundle config set path /tmp/bundle-dir + bundle install - name: Lint and test run: bundle exec rake TESTOPTS="--verbose" diff --git a/Gemfile.lock b/Gemfile.lock index 6e29dce..d5e2386 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,23 +13,23 @@ GEM specs: ast (2.4.2) base64 (0.2.0) - bigdecimal (3.1.9) - google-protobuf (4.31.1) + bigdecimal (3.2.2) + google-protobuf (4.32.0) bigdecimal rake (>= 13) - google-protobuf (4.31.1-aarch64-linux-gnu) + google-protobuf (4.32.0-aarch64-linux-gnu) bigdecimal rake (>= 13) - google-protobuf (4.31.1-arm64-darwin) + google-protobuf (4.32.0-arm64-darwin) bigdecimal rake (>= 13) - google-protobuf (4.31.1-x86-linux-gnu) + google-protobuf (4.32.0-x86-linux-gnu) bigdecimal rake (>= 13) - google-protobuf (4.31.1-x86_64-darwin) + google-protobuf (4.32.0-x86_64-darwin) bigdecimal rake (>= 13) - google-protobuf (4.31.1-x86_64-linux-gnu) + google-protobuf (4.32.0-x86_64-linux-gnu) bigdecimal rake (>= 13) googleapis-common-protos-types (1.19.0) @@ -66,7 +66,7 @@ GEM racc racc (1.8.1) rainbow (3.1.1) - rake (13.2.1) + rake (13.3.0) regexp_parser (2.10.0) rubocop (1.70.0) json (~> 2.3) @@ -81,19 +81,19 @@ GEM rubocop-ast (1.37.0) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) - temporalio (0.5.0) + temporalio (0.6.0) google-protobuf (>= 3.25.0) logger - temporalio (0.5.0-aarch64-linux) + temporalio (0.6.0-aarch64-linux) google-protobuf (>= 3.25.0) logger - temporalio (0.5.0-arm64-darwin) + temporalio (0.6.0-arm64-darwin) google-protobuf (>= 3.25.0) logger - temporalio (0.5.0-x86_64-darwin) + temporalio (0.6.0-x86_64-darwin) google-protobuf (>= 3.25.0) logger - temporalio (0.5.0-x86_64-linux) + temporalio (0.6.0-x86_64-linux) google-protobuf (>= 3.25.0) logger unicode-display_width (3.1.4) diff --git a/message_passing_simple/greeting_workflow.rb b/message_passing_simple/greeting_workflow.rb index ca0211c..3b5a80d 100644 --- a/message_passing_simple/greeting_workflow.rb +++ b/message_passing_simple/greeting_workflow.rb @@ -70,7 +70,7 @@ def apply_language_with_lookup(new_language) # We use a mutex so that, if this handler is executed multiple times, each execution can schedule the activity # only when the previously scheduled activity has completed. This ensures that multiple calls to # apply_language_with_lookup are processed in order. - @apply_language_mutex ||= Mutex.new + @apply_language_mutex ||= Temporalio::Workflow::Mutex.new @apply_language_mutex.synchronize do greeting = Temporalio::Workflow.execute_activity( CallGreetingService, new_language, start_to_close_timeout: 10