Skip to content

Prefix some API functions and types correctly #274

Prefix some API functions and types correctly

Prefix some API functions and types correctly #274

name: Redis compatibility testing
on: [push, pull_request]
jobs:
redis-comp:
name: Redis ${{ matrix.redis-version }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- redis-version: 7.0.0
- redis-version: 6.2.7
- redis-version: 6.0.16
- redis-version: 5.0.14
steps:
- name: Prepare
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libevent-dev
version: 1.0
- uses: actions/checkout@v3
- name: Create build folder
run: cmake -E make_directory build
- name: Generate makefiles
shell: bash
working-directory: build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DENABLE_IPV6_TESTS=ON -DTEST_WITH_REDIS_VERSION=${{ matrix.redis-version }} ..
- name: Build
shell: bash
working-directory: build
run: VERBOSE=1 make
- name: Setup clusters
shell: bash
working-directory: build
run: make start
- name: Wait for clusters to start..
uses: kibertoad/[email protected]
with:
time: '40s'
- name: Run tests
shell: bash
working-directory: build
run: make CTEST_OUTPUT_ON_FAILURE=1 test
- name: Teardown clusters
working-directory: build
shell: bash
run: make stop