Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 4 additions & 17 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,7 @@ name: Pipeline
on: [push]
jobs:
tests:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, '3.0', 3.1]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.3.9
bundler-cache: true
- name: Unit tests
run: |
sudo apt-get install liblua5.1-0
bundle exec rake
uses: Invoca/ruby-test-matrix-workflow/.github/workflows/ruby-test-matrix.yml@main
with:
pre-test-hook: "sudo apt-get install liblua5.1-0"
test-command: "bundle exec rake"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.6
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ PATH
GEM
remote: https://rubygems.org/
specs:
coderay (1.1.2)
coderay (1.1.3)
diff-lcs (1.3)
ffi (1.17.0)
method_source (1.0.0)
method_source (1.1.0)
mock_redis (0.28.0)
ruby2_keywords
pry (0.13.1)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
rake (13.0.1)
Expand Down
3 changes: 2 additions & 1 deletion spec/mock_redis_lua_extension_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@
end

it 'puts parsed args when redis.debug() is called' do
expect_any_instance_of(MockRedis).to receive(:puts).with("hello, hi, 1.0, [5.0, 10.0], {\"monkey\"=>\"banana\", \"number\"=>200.0}, goodbye")
hash = { "monkey" => "banana", "number" => 200.0 }
expect_any_instance_of(MockRedis).to receive(:puts).with("hello, hi, 1.0, [5.0, 10.0], #{hash}, goodbye")
lua_script = %q|
local var1 = "hi"
local var2 = 1.0
Expand Down