diff --git a/.github/workflows/build-gem.yml b/.github/workflows/build-gem.yml index 7ad3eedc..7e65839c 100644 --- a/.github/workflows/build-gem.yml +++ b/.github/workflows/build-gem.yml @@ -22,23 +22,15 @@ jobs: BUILD_PLATFORM: ${{ startsWith(inputs.version, 'jruby') && 'jruby' || 'ruby' }} FLAKY: ${{ startsWith(inputs.version, 'jruby') && 'true' || 'false' }} - services: - redis: - image: redis - ports: - - 6379:6379 - dynamodb: - image: amazon/dynamodb-local - ports: - - 8000:8000 - consul: - image: hashicorp/consul - ports: - - 8500:8500 - steps: - uses: actions/checkout@v4 + - uses: launchdarkly/gh-actions/actions/persistent-stores@persistent-stores-v0 + with: + redis: true + consul: true + dynamodb: true + - uses: ./.github/actions/setup with: version: ${{ inputs.version }} diff --git a/spec/ldclient_spec.rb b/spec/ldclient_spec.rb index 88e27ab6..04778116 100644 --- a/spec/ldclient_spec.rb +++ b/spec/ldclient_spec.rb @@ -113,7 +113,7 @@ module LaunchDarkly prereq = flags_map[prereq[:key].to_sym] prereq_index = flags_list.index(prereq) if prereq_index > item_index - all_keys = (flags_list.map { |f| f[:key] }).join(", ") + all_keys = flags_list.map { |f| f[:key] }.join(", ") raise "#{item[:key]} depends on #{prereq[:key]}, but #{item[:key]} was listed first; keys in order are [#{all_keys}]" end end