Test against Kafka 4.0.0 #164
Workflow file for this run
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: kafka_protocol | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
rebar3: | |
- '3.24.0' | |
otp: | |
- '27' | |
- '26' | |
kafka: | |
- '4.0' | |
- '3.9' | |
- '2.8' | |
- '1.1' | |
runs-on: ubuntu-22.04 | |
steps: | |
# Setup | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache Hex packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/rebar3/hex/hexpm/packages | |
key: ${{ runner.os }}-hex2-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.lock')) }} | |
restore-keys: | | |
${{ runner.os }}-hex2- | |
- name: Cache Dialyzer PLTs | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/rebar3/rebar3_*_plt | |
key: ${{ runner.os }}--dialyzer2-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }} | |
restore-keys: | | |
${{ runner.os }}-dialyzer2- | |
# Install Erlang | |
- name: Install Erlang/OTP | |
uses: erlef/setup-beam@v1 | |
with: | |
version-type: strict | |
otp-version: ${{matrix.otp}} | |
rebar3-version: ${{matrix.rebar3}} | |
# Compile | |
- name: Compile | |
run: | | |
rebar3 do compile, dialyzer, ex_doc, xref | |
# Tests | |
- name: Run tests | |
run: | | |
export KAFKA_VERSION=${{ matrix.kafka }} | |
make test-env | |
make eunit || (cd scripts && docker compose logs) | |
make cover | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |