Use sasl_auth:client_done/1 #63
Workflow file for this run
This file contains 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: Run Common Test Suites and Kafka GSSAPI (Kerberos) Example | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Cache register | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ hashFiles('./example/image/Dockerfile') }} | |
- name: Install docker-compose | |
run: | | |
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
- name: Build Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./example/image/ | |
file: ./example/image/Dockerfile | |
builder: ${{ steps.buildx.outputs.name }} | |
load: true | |
tags: brod_gssapi_dockerfile:latest | |
cache-from: type=local,src=/tmp/.buildx-cache | |
cache-to: type=local,dest=/tmp/.buildx-cache-new | |
# This ugly bit is necessary if you don't want your cache to grow forever | |
# till it hits GitHub's limit of 5GB. | |
# Temp fix | |
# https://github.com/docker/build-push-action/issues/252 | |
# https://github.com/moby/buildkit/issues/1896 | |
- name: Move cache | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
- name: Compile and run tests | |
run: ./scripts/run_test_in_docker_container.sh | |
- name: Run Kafka GSSAPI (Kerberos) Authentication Example (known working brod version) | |
run: | | |
cd example | |
./up BROD_GSSAPI_NO_DOCKER_IMAGE_BUILD | |
- name: Run Kafka GSSAPI (Kerberos) Authentication Example (latest official brod version) | |
run: | | |
cd example | |
./test_send_receive_erlang.sh rebar.config_brod_latest | |
- name: Run Kafka GSSAPI (Kerberos) Authentication Example (brod master branch) | |
run: | | |
cd example | |
./test_send_receive_erlang.sh rebar.config_brod_master | |