Skip to content

Commit

Permalink
We need to install valkey-server
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Jun 24, 2024
1 parent 0ac1727 commit 13ba3f0
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install dependencies
# TODO: Test against Redis and KeyDB in addition to Valkey
- name: Install Valkey
run: |
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install -y redis-server valgrind libevent-dev
git clone --depth 1 --branch 7.2.5 https://github.com/valkey-io/valkey.git
cd valkey && BUILD_TLS=yes sudo make install
# - name: Install dependencies
# run: |
# curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
# echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
# sudo apt-get update
# sudo apt-get install -y redis-server valgrind libevent-dev
- name: Build using cmake
env:
Expand Down Expand Up @@ -62,17 +68,19 @@ jobs:
run: USE_SSL=1 TEST_ASYNC=1 make

- name: Run tests
working-directory: tests
env:
SKIPS_AS_FAILS: 1
TEST_SSL: 1
run: $GITHUB_WORKSPACE/test.sh
run: ./test.sh

- name: Run tests under valgrind
working-directory: tests
env:
SKIPS_AS_FAILS: 1
TEST_SSL: 1
TEST_PREFIX: valgrind --error-exitcode=99 --track-origins=yes --leak-check=full
run: $GITHUB_WORKSPACE/test.sh
run: ./test.sh

centos8:
name: RockyLinux 8
Expand Down Expand Up @@ -100,17 +108,19 @@ jobs:
run: USE_SSL=1 TEST_ASYNC=1 make

- name: Run tests
working-directory: tests
env:
SKIPS_AS_FAILS: 1
TEST_SSL: 1
run: $GITHUB_WORKSPACE/test.sh
run: ./test.sh

- name: Run tests under valgrind
working-directory: tests
env:
SKIPS_AS_FAILS: 1
TEST_SSL: 1
TEST_PREFIX: valgrind --error-exitcode=99 --track-origins=yes --leak-check=full
run: $GITHUB_WORKSPACE/test.sh
run: ./test.sh

freebsd:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -141,9 +151,10 @@ jobs:
run: USE_SSL=1 make

- name: Run tests
working-directory: tests
env:
TEST_SSL: 1
run: $GITHUB_WORKSPACE/test.sh
run: ./test.sh

windows:
name: Windows
Expand Down

0 comments on commit 13ba3f0

Please sign in to comment.