Skip to content

Commit

Permalink
Apply changes from v3.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hfsaito committed Jan 26, 2024
1 parent 71efca9 commit 6ea3c83
Show file tree
Hide file tree
Showing 220 changed files with 14,973 additions and 9,853 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
246 changes: 246 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
---
name: Test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
lint:
name: Rubocop
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint
run: bundle exec rubocop

rubies:
name: Ruby
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "jruby-9.3.6.0"]
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.01"
REDIS_BRANCH: "7.2"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-7.0-on-ubuntu-latest"
- name: Booting up Redis
run: make start
- name: Test
run: bundle exec rake test:redis test:distributed
- name: Shutting down Redis
run: make stop

truffle:
name: TruffleRuby
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
suite: ["redis", "distributed"]
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.01"
REDIS_BRANCH: "7.2"
TRUFFLERUBYOPT: "--engine.Mode=latency"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: truffleruby
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-7.0-on-ubuntu-latest"
- name: Booting up Redis
run: make start
- name: Test
run: bundle exec rake test:${{ matrix.suite }}
- name: Shutting down Redis
run: make stop

drivers:
name: Driver
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
driver: ["hiredis"]
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.01"
DRIVER: ${{ matrix.driver }}
REDIS_BRANCH: "7.2"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.5"
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-7.0-on-ubuntu-latest"
- name: Booting up Redis
run: make start
- name: Test
run: bundle exec rake test:redis test:distributed
- name: Shutting down Redis
run: make stop

redises:
name: Redis
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
redis: ["7.0", "6.2", "6.0", "5.0"]
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.14"
REDIS_BRANCH: ${{ matrix.redis }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.5"
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-${{ matrix.redis }}-on-ubuntu-latest"
- name: Booting up Redis
run: make start
- name: Test
run: bundle exec rake test:redis test:distributed
- name: Shutting down Redis
run: make stop

sentinel:
name: Sentinel
timeout-minutes: 15
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
LOW_TIMEOUT: "0.14"
REDIS_BRANCH: "7.0"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.5"
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-7.0-on-ubuntu-latest"
- name: Booting up Redis
run: make start_sentinel wait_for_sentinel
- name: Test
run: bundle exec rake test:sentinel
- name: Shutting down Redis
run: make stop_all

cluster:
name: Cluster
timeout-minutes: 15
strategy:
fail-fast: false
runs-on: ubuntu-latest
env:
TIMEOUT: "15"
LOW_TIMEOUT: "0.14"
REDIS_BRANCH: "7.2"
BUNDLE_GEMFILE: cluster/Gemfile
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Print environment variables
run: |
echo "TIMEOUT=${TIMEOUT}"
echo "LOW_TIMEOUT=${LOW_TIMEOUT}"
echo "DRIVER=${DRIVER}"
echo "REDIS_BRANCH=${REDIS_BRANCH}"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- name: Cache local temporary directory
uses: actions/cache@v4
with:
path: tmp
key: "local-tmp-redis-7.0-on-ubuntu-latest"
- name: Booting up Redis
run: make start start_cluster create_cluster
- name: Test
run: bundle exec rake test:cluster
- name: Shutting down Redis
run: make stop_all
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Gemfile.lock
/tmp/
/.idea
/.yardoc
/.bundle
/cluster/.bundle
/coverage/*
/doc/
/examples/sentinel/sentinel.conf
Expand All @@ -14,3 +16,8 @@ Gemfile.lock
/redis/*
/test/db
/test/test.conf
appendonly.aof
appendonlydir
temp-rewriteaof-*.aof
.history

Loading

0 comments on commit 6ea3c83

Please sign in to comment.