Skip to content

250907 sync main 1.5 #353

250907 sync main 1.5

250907 sync main 1.5 #353

Workflow file for this run

name: wolff
on:
pull_request:
branches:
- main
- main-*
jobs:
build:
strategy:
fail-fast: false
matrix:
vsn: [["27.3", "1.1"], ["26.2", "2.8"], ["27.3", "3.9"], ["26.2", "4.0"]]
runs-on: ubuntu-latest
steps:
# Setup
- 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(format('{0}{1}', github.workspace, '/rebar.lock')) }}
restore-keys: |
${{ runner.os }}-hex-
- name: Cache Dialyzer PLTs
uses: actions/cache@v4
with:
path: ~/.cache/rebar3/rebar3_*_plt
key: ${{ runner.os }}-dialyzer-${{ hashFiles(format('{0}{1}', github.workspace, '/rebar.config')) }}
restore-keys: |
${{ runner.os }}-dialyzer-
# Install Erlang
- name: Install Erlang/OTP
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.vsn[0]}}
rebar3-version: '3.24.0'
# Compile
- name: Compile
run: |
rebar3 do compile, dialyzer, edoc, xref
# Tests
- name: Run tests
run: |
export DEBUG=1
export KAFKA_VERSION=${{ matrix.vsn[1] }}
. scripts/.env
export ZOOKEEPER_IP
echo "Running Kafka ${KAFKA_VERSION}, Zookeeper: ${ZOOKEEPER_IP}"
make test-env
make eunit
make ct