Add standalone handling for Redis Sentinel 6 and newer #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- otp-version: '25.3.2.18' | |
rebar3-version: '3.24.0' | |
- otp-version: '24.3.4.17' | |
rebar3-version: '3.17.0' | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Hex packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/rebar3/hex/hexpm/packages | |
key: ${{ runner.os }}-hex-${{ hashFiles('**/rebar.lock') }} | |
restore-keys: ${{ runner.os }}-hex- | |
- name: Cache Dialyzer PLTs | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/rebar3/rebar3_*_plt | |
key: ${{ runner.os }}-${{ matrix.otp-version }}-dialyzer-${{ hashFiles('**/rebar.config') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.otp-version }}-dialyzer- | |
- name: Install Erlang/OTP | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp-version }} | |
rebar3-version: ${{ matrix.rebar3-version }} | |
- name: Install elvis | |
run: | | |
git clone --depth 1 --branch 1.1.0 https://github.com/inaka/elvis.git | |
cd elvis && rebar3 escriptize && sudo cp _build/default/bin/elvis /usr/local/bin/ | |
- name: Build and test | |
run: | | |
make compile | |
make start # Start and join clusters | |
sleep 5 | |
make status | |
make test | |
make stop # Stop cluster | |
make cover | |
- name: Run checks | |
run: | | |
make elvis | |
make xref | |
make dialyzer | |
- name: Generate docs | |
run: | | |
make edoc | |
git diff --exit-code ./doc || echo "** Please commit your changes from 'make edoc' **" |